mirror of
https://github.com/inventree/inventree-app.git
synced 2025-07-30 09:11:34 +00:00
Hide actions if user does not have correct permissions
This commit is contained in:
@@ -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),
|
||||
|
Reference in New Issue
Block a user