From 6bae547730f41d68bcf6c72159b2d86654a114a0 Mon Sep 17 00:00:00 2001 From: sbyrd Date: Thu, 10 Dec 2020 22:32:29 -0500 Subject: [PATCH] roles --- image.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/image.php b/image.php index 50b7263..30d76ff 100644 --- a/image.php +++ b/image.php @@ -78,10 +78,12 @@ class image extends objectStructs public function hasRole( string $Role) { - if (isset($this->annotations->roles[$Role]) ) - return true; - elseif ( isset($this->annotations->roles[ucfirst($Role) ] ) ) + $this->Log(__FUNCTION__ . "Checking Role: $Role"); + if (isset($this->annotations->roles[$Role]) OR isset($this->annotations->roles[ucfirst($Role) ] ) ) + { + $this->Log(__FUNCTION__ . "--Image has role: $Role"); return true; + } else return false; }