src/Menu/MenuPermissionsFilter.php
protected function userHasPermission(array $permissions)
    {
        if ( ! count($permissions)) {
            return true;
        }

        return (bool) count(
            array_filter($permissions, function ($permission) {
                return array_get($this->userPermissions, $permission);
            })
        );
    }
protected function userHasPermission(array $permissions)
    {
        if ( ! count($permissions)) {
            return true;
        }

        return (bool) count(
            array_filter($permissions, function ($permission) {
                return array_get($this->userPermissions, $permission);
            })
        );
    }
protected function userHasPermission ( array $ permissions ) { if ( ! count ( $ permissions ) ) { return true ; } return ( bool ) count ( array_filter ( $ permissions , function ( $ permission ) { return array_get ( $ this -> userPermissions , $ permission ) ; } ) ) ; }
Returns whether user has any of the given permissions.

@param string[] $permissions
@return bool
Returns whether user has any of the given permissions .