mirror of
				https://github.com/inventree/inventree-app.git
				synced 2025-10-30 21:05:42 +00:00 
			
		
		
		
	Catch error when decoding permissions
This commit is contained in:
		| @@ -434,9 +434,13 @@ class InvenTreeAPI { | |||||||
|       return true; |       return true; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     try { | ||||||
|       List<String> perms = List.from(roles[role]); |       List<String> perms = List.from(roles[role]); | ||||||
|  |  | ||||||
|       return perms.contains(permission); |       return perms.contains(permission); | ||||||
|  |     } catch (error, stackTrace) { | ||||||
|  |       sentryReportError(error, stackTrace); | ||||||
|  |       return true; | ||||||
|  |     } | ||||||
|   } |   } | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user