mirror of
https://github.com/inventree/inventree-app.git
synced 2025-07-30 17:21:28 +00:00
Company create (#610)
* API: refactor checkPermission - Rename to checkRole (actually what it is doing) - Permission check will be incoming * Add checkPermission function for API * Create a new company * Bump release notes * Cleanup * Fix
This commit is contained in:
@@ -183,7 +183,7 @@ class _InvenTreeHomePageState extends State<InvenTreeHomePage> with BaseWidgetPr
|
||||
bool allowed = true;
|
||||
|
||||
if (role.isNotEmpty || permission.isNotEmpty) {
|
||||
allowed = InvenTreeAPI().checkPermission(role, permission);
|
||||
allowed = InvenTreeAPI().checkRole(role, permission);
|
||||
}
|
||||
|
||||
return GestureDetector(
|
||||
|
Reference in New Issue
Block a user