mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-14 12:06:24 +00:00
Check that the user has the required permisions
This commit is contained in:
parent
ed94d4eb96
commit
fcc5bf8c30
1 changed files with 18 additions and 16 deletions
|
|
@ -273,6 +273,7 @@ class _CategoryDisplayState extends RefreshableState<CategoryDisplayWidget> {
|
||||||
getCategoryDescriptionCard(extra: false),
|
getCategoryDescriptionCard(extra: false),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
if (InvenTreeAPI().checkPermission('part', 'add')) {
|
||||||
tiles.add(
|
tiles.add(
|
||||||
ListTile(
|
ListTile(
|
||||||
title: Text(L10().categoryCreate),
|
title: Text(L10().categoryCreate),
|
||||||
|
|
@ -294,6 +295,7 @@ class _CategoryDisplayState extends RefreshableState<CategoryDisplayWidget> {
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return tiles;
|
return tiles;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue