mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Hide actions if user does not have correct permissions
This commit is contained in:
parent
04f03188e2
commit
096c4e86dc
4 changed files with 74 additions and 36 deletions
|
|
@ -62,7 +62,7 @@ class _CategoryDisplayState extends RefreshableState<CategoryDisplayWidget> {
|
|||
)
|
||||
);
|
||||
|
||||
if (category != null) {
|
||||
if ((category != null) && InvenTreeAPI().checkPermission('part_category', 'change')) {
|
||||
actions.add(
|
||||
IconButton(
|
||||
icon: FaIcon(FontAwesomeIcons.edit),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue