public function isAllowedNotify(): bool
    {
        //====================================================================//
        // Safety Check
        if (!isset($this->authChecker)) {
            return true;
        }

        try {
            //====================================================================//
            // Walk on User Allowed Roles
            foreach ($this->getCoreParameter('notify') as $notifyRole) {
                //====================================================================//
                // User as Role => Notifications Allowed
                if ($this->authChecker->isGranted($notifyRole)) {
                    return true;
                }
            }
        } catch (AuthenticationCredentialsNotFoundException $exc) {
            //====================================================================//
            // Notifications Not Allowed
            return false;
        }

        return false;
    }
public function isAllowedNotify(): bool
    {
        //====================================================================//
        // Safety Check
        if (!isset($this->authChecker)) {
            return true;
        }

        try {
            //====================================================================//
            // Walk on User Allowed Roles
            foreach ($this->getCoreParameter('notify') as $notifyRole) {
                //====================================================================//
                // User as Role => Notifications Allowed
                if ($this->authChecker->isGranted($notifyRole)) {
                    return true;
                }
            }
        } catch (AuthenticationCredentialsNotFoundException $exc) {
            //====================================================================//
            // Notifications Not Allowed
            return false;
        }

        return false;
    }
public function isAllowedNotify ( ) : bool { //====================================================================// // Safety Check if ( ! isset ( $ this -> authChecker ) ) { return true ; } try { //====================================================================// // Walk on User Allowed Roles foreach ( $ this -> getCoreParameter ( 'notify' ) as $ notifyRole ) { //====================================================================// // User as Role => Notifications Allowed if ( $ this -> authChecker -> isGranted ( $ notifyRole ) ) { return true ; } } } catch ( AuthenticationCredentialsNotFoundException $ exc ) { //====================================================================// // Notifications Not Allowed return false ; } return false ; }
Decide if Current Logged User Needs to Be Notified or Not

@return bool
Decide if Current Logged User Needs to Be Notified or Not