roles
This commit is contained in:
parent
82f5126c34
commit
6bae547730
|
@ -78,10 +78,12 @@ class image extends objectStructs
|
||||||
|
|
||||||
public function hasRole( string $Role)
|
public function hasRole( string $Role)
|
||||||
{
|
{
|
||||||
if (isset($this->annotations->roles[$Role]) )
|
$this->Log(__FUNCTION__ . "Checking Role: $Role");
|
||||||
return true;
|
if (isset($this->annotations->roles[$Role]) OR isset($this->annotations->roles[ucfirst($Role) ] ) )
|
||||||
elseif ( isset($this->annotations->roles[ucfirst($Role) ] ) )
|
{
|
||||||
|
$this->Log(__FUNCTION__ . "--Image has role: $Role");
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue