Log(__FUNCTION__ . " Load imageAnnotations with".print_r($Result,true)); if (is_string($Result->roles)) $this->roles = explode(',',$Result->roles); } public function hasRole( string $Role) { if (isset($this->roles[$Role]) ) return true; elseif ( isset($this->roles[ucfirst($Role) ] ) ) return true; else return false; } }