- Updated translations
- Improved error catching
This commit is contained in:
Oliver committed 2021-11-29 21:02:29 +11:00
1 parent e343ae8aa0
commit 761aa0f861
4 files changed
+8 -5

No files matched your search

+3 -1
View File
@@ -1,10 +1,12 @@
## InvenTree App Release Notes
---
### 0.
### 0.5.3 - November 2021
---
- Check for null value when reading user permissions
- Updated Italian language translations
- Updated French language translations
### 0.5.2 - October 2021
---
+4
View File
@@ -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);
-3
View File
@@ -285,9 +285,6 @@ class InvenTreeModel {
// Return the detail view for the associated pk
Future<InvenTreeModel?> get(int pk, {Map<String, String> filters = const {}}) async {
// TODO - Add "timeout"
// TODO - Add error catching
var url = path.join(URL, pk.toString());
if (!url.endsWith("/")) {
Submodule lib/l10n updated: 0731397acd...1ce6872e6a.