mirror of
https://github.com/inventree/inventree-app.git
synced 2025-04-28 13:36:50 +00:00
v0.5.3
- Updated translations - Improved error catching
This commit is contained in:
parent
e343ae8aa0
commit
761aa0f861
@ -1,10 +1,12 @@
|
|||||||
## InvenTree App Release Notes
|
## InvenTree App Release Notes
|
||||||
---
|
---
|
||||||
|
|
||||||
### 0.
|
### 0.5.3 - November 2021
|
||||||
---
|
---
|
||||||
|
|
||||||
|
- Check for null value when reading user permissions
|
||||||
- Updated Italian language translations
|
- Updated Italian language translations
|
||||||
|
- Updated French language translations
|
||||||
|
|
||||||
### 0.5.2 - October 2021
|
### 0.5.2 - October 2021
|
||||||
---
|
---
|
||||||
|
@ -480,6 +480,10 @@ class InvenTreeAPI {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (roles[role] == null) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
List<String> perms = List.from(roles[role] as List<dynamic>);
|
List<String> perms = List.from(roles[role] as List<dynamic>);
|
||||||
return perms.contains(permission);
|
return perms.contains(permission);
|
||||||
|
@ -285,9 +285,6 @@ class InvenTreeModel {
|
|||||||
// Return the detail view for the associated pk
|
// Return the detail view for the associated pk
|
||||||
Future<InvenTreeModel?> get(int pk, {Map<String, String> filters = const {}}) async {
|
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());
|
var url = path.join(URL, pk.toString());
|
||||||
|
|
||||||
if (!url.endsWith("/")) {
|
if (!url.endsWith("/")) {
|
||||||
|
2
lib/l10n
2
lib/l10n
@ -1 +1 @@
|
|||||||
Subproject commit 0731397acd15f66067052d02f43e25e95c65bca9
|
Subproject commit 1ce6872e6a9cd992b974bd21a41b1010dd569391
|
Loading…
x
Reference in New Issue
Block a user