> For the complete documentation index, see [llms.txt](https://nzbin.gitbook.io/ng-matero/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nzbin.gitbook.io/ng-matero/permissions.md).

# Permissions

The ng-matero uses [ngx-permissions](https://github.com/AlexKhymenko/ngx-permissions) to manage permissions. Please check the [docs](https://github.com/AlexKhymenko/ngx-permissions/wiki) 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.

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

<https://ng-matero.github.io/ng-matero/permissions/role-switching>
