function hasAppPerms($app)
    {
        foreach ($this->getAllRoles() as $perm) {
            if (0 === strpos($perm, $app . '.')) {
                return true;
            }
        }
        return false;
    }
function hasAppPerms($app)
    {
        foreach ($this->getAllRoles() as $perm) {
            if (0 === strpos($perm, $app . '.')) {
                return true;
            }
        }
        return false;
    }
function hasAppPerms ( $ app ) { foreach ( $ this -> getAllRoles ( ) as $ perm ) { if ( 0 === strpos ( $ perm , $ app . '.' ) ) { return true ; } } return false ; }
Check an application role

@return bool is true if ther is an application role related to the group
Check an application role