Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Empty menu items #20

@fopina

Description

@fopina

item['has_perms'] = item.get('has_perms', True) and context['user'].has_perms(data['permissions'])

Custom permissions (for menu item) are checked here but not really used anywhere.

If the user does not have the minimum permission for the menu, the app_list entry should be removed entirely (probably here to keep template logic simpler).

As an extra, it could be interesting to have the menu item removed if there is no minimum permission for the sub-entries either. But it needs to be verified whether or not top items can be links directly (so that would be another check).
This could actually be the only check (and removing permissions from top key)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions