private function hasFullAccess(): bool
    {
        if (! isset($this->capabilities['action'][Utils::getTypeFull()])) {
            return false;
        }

        // check user capabilities against action's full capabilities
        foreach ($this->capabilities['action'][Utils::getTypeFull()] as $capability) {
            // if current action's full capability is matched in user's capabilities just return
            if (in_array($capability->getName(), $this->capabilities['user'])) {
                return true;
            }
        }

        return false;
    }
private function hasFullAccess(): bool
    {
        if (! isset($this->capabilities['action'][Utils::getTypeFull()])) {
            return false;
        }

        // check user capabilities against action's full capabilities
        foreach ($this->capabilities['action'][Utils::getTypeFull()] as $capability) {
            // if current action's full capability is matched in user's capabilities just return
            if (in_array($capability->getName(), $this->capabilities['user'])) {
                return true;
            }
        }

        return false;
    }
private function hasFullAccess ( ) : bool { if ( ! isset ( $ this -> capabilities [ 'action' ] [ Utils :: getTypeFull ( ) ] ) ) { return false ; } // check user capabilities against action's full capabilities foreach ( $ this -> capabilities [ 'action' ] [ Utils :: getTypeFull ( ) ] as $ capability ) { // if current action's full capability is matched in user's capabilities just return if ( in_array ( $ capability -> getName ( ) , $ this -> capabilities [ 'user' ] ) ) { return true ; } } return false ; }
Check if user has full access.

@return bool
Check if user has full access .