mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
v0.5.3
- Updated translations - Improved error catching
This commit is contained in:
parent
e343ae8aa0
commit
761aa0f861
4 changed files with 8 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue