NG-MATERO
GitHubMaterial Extensions
en
en
  • Introduction
  • Getting Started
  • Schematics
    • Install the Project
    • Add a New Route
  • Theming
    • Layout Settings
    • Menu Settings
    • Page Title
    • Colors
    • Helpers
  • Responsive
    • Flex layout
    • Grid Class
  • Authentication
  • Permissions
  • Internationalization
  • Third Libs
Powered by GitBook
On this page

Was this helpful?

Edit on Git

Permissions

PreviousAuthenticationNextInternationalization

Last updated 10 months ago

Was this helpful?

The ng-matero uses to manage permissions. Please check the for more details.

Menu Permissions

The ngx-permissions directive is already built into the ng-matero's menu. You can add the permissions field directly from the menu's configuration.

{
  "menu": [
    ...
    {
      "route": "design",
      "name": "design",
      "type": "sub",
      "icon": "color_lens",
+     "permissions": {
+       "only": [
+         "ADMIN",
+         "MANAGER"
+       ]
+     }
    },
    ...
  ]
}

ngx-permissions
docs
https://ng-matero.github.io/ng-matero/permissions/role-switching