mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +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:
parent
0c5944a8a0
commit
1a3f48f48c
8 changed files with 129 additions and 22 deletions
|
|
@ -117,10 +117,10 @@ void main() {
|
|||
assert(api.roles.isNotEmpty);
|
||||
|
||||
// Check available permissions
|
||||
assert(api.checkPermission("part", "change"));
|
||||
assert(api.checkPermission("stock_location", "delete"));
|
||||
assert(!api.checkPermission("part", "weirdpermission"));
|
||||
assert(api.checkPermission("blah", "bloo"));
|
||||
assert(api.checkRole("part", "change"));
|
||||
assert(api.checkRole("stock_location", "delete"));
|
||||
assert(!api.checkRole("part", "weirdpermission"));
|
||||
assert(api.checkRole("blah", "bloo"));
|
||||
|
||||
debugContains("Received token from server");
|
||||
debugContains("showSnackIcon: 'Connected to Server'");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue