libs/helpers/SystemHelper.php
public static function isSuperAdmin(\Nette\Security\User $user)
    {
        $roles = $user->getIdentity()->getRoles();

        return in_array('superadmin', $roles);
    }
public static function isSuperAdmin(\Nette\Security\User $user)
    {
        $roles = $user->getIdentity()->getRoles();

        return in_array('superadmin', $roles);
    }
public static function isSuperAdmin ( \ Nette \ Security \ User $ user ) { $ roles = $ user -> getIdentity ( ) -> getRoles ( ) ; return in_array ( 'superadmin' , $ roles ) ; }
Checks whether user has role superadmin or not.
@param  \Nette\Security\User $user
@return Boolean
Checks whether user has role superadmin or not .