mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
User configurable home screen actions
This commit is contained in:
parent
fd54b20b92
commit
2788ed5bd7
8 changed files with 256 additions and 102 deletions
|
|
@ -488,9 +488,7 @@ class InvenTreeAPI {
|
|||
List<String> perms = List.from(roles[role] as List<dynamic>);
|
||||
return perms.contains(permission);
|
||||
} catch (error, stackTrace) {
|
||||
if (error is CastError) {
|
||||
// Ignore CastError
|
||||
} else if (error is TypeError) {
|
||||
if (error is TypeError) {
|
||||
// Ignore TypeError
|
||||
} else {
|
||||
// Unknown error - report it!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue