@polargold/pg-frontend-vue
    Preparing search index...

    Interface UsePermissionOptions

    interface UsePermissionOptions {
        getUserRoles: () => string[];
        isAdmin?: () => boolean;
    }
    Index
    getUserRoles: () => string[]

    Returns the current user's role names. Replaces a direct useAuthUserStore() import.

    isAdmin?: () => boolean

    Returns whether the current user is an admin - admins satisfy every permission check. Optional.