Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter menu items by permission #18

Open
santospatrick opened this issue Sep 3, 2022 · 0 comments
Open

Filter menu items by permission #18

santospatrick opened this issue Sep 3, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@santospatrick
Copy link
Owner

Is your feature request related to a problem? Please describe.
Filter menu items based on user profiles.

Describe the solution you'd like
Create an attribute in menu items to set which profiles can/cannot see:

export const menu: MenuItem[] = [
  {
    icon: MdDashboard,
    text: "Dashboard",
    href: "/",
    profiles: ["ADMIN"] // <=====
  },
  // ...
]

Describe alternatives you've considered
No.

Additional context
No.

@santospatrick santospatrick added the enhancement New feature or request label Sep 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant