function canViewItem() { // Is my reminder or is in visibility return $this->fields['users_id'] == Session::getLoginUserID() || Session::haveRight(self::$rightname, READ) && $this->haveVisibilityAccess(); }