From f90e9fcf5a5b2bcd984cbd3f25d5dce0dba78e3f Mon Sep 17 00:00:00 2001 From: sbyrd Date: Thu, 17 Dec 2020 22:40:48 -0500 Subject: [PATCH] roles --- imageAnnotations.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/imageAnnotations.php b/imageAnnotations.php index 20d303b..e9b5c11 100644 --- a/imageAnnotations.php +++ b/imageAnnotations.php @@ -21,11 +21,9 @@ class imageAnnotations extends objectStructs parent::__construct($Result); $this->Log(__FUNCTION__ . " Load imageAnnotations with".print_r($Result,true)); - if ($this->roles and empty($this->roles) ) - { - $this->Log(__FUNCTION__ . " We have roles, lets explode"); + if (!is_array($this->roles)) $this->roles = explode(',',$this->roles); - } + } public function hasRole( string $Role)