mirror of
https://github.com/inventree/inventree-app.git
synced 2025-07-23 13:46:29 +00:00
v0.5.3
- Updated translations - Improved error catching
This commit is contained in:
@@ -480,6 +480,10 @@ class InvenTreeAPI {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (roles[role] == null) {
|
||||
return true;
|
||||
}
|
||||
|
||||
try {
|
||||
List<String> perms = List.from(roles[role] as List<dynamic>);
|
||||
return perms.contains(permission);
|
||||
|
Reference in New Issue
Block a user