public function hasSuperUser()
    {

        $permissions = $this->getAllPermissions();

        foreach ($permissions as $permission)
            if ($permission === 'superuser') return true;

        return false;
    }
public function hasSuperUser()
    {

        $permissions = $this->getAllPermissions();

        foreach ($permissions as $permission)
            if ($permission === 'superuser') return true;

        return false;
    }
public function hasSuperUser ( ) { $ permissions = $ this -> getAllPermissions ( ) ; foreach ( $ permissions as $ permission ) if ( $ permission === 'superuser' ) return true ; return false ; }
Determine of the current user has the
superuser permission.
Determine of the current user has the superuser permission .