File tree 3 files changed +3
-3
lines changed 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ class InvenTreePartCategory extends InvenTreeModel {
27
27
static const String MODEL_TYPE = "partcategory" ;
28
28
29
29
@override
30
- List <String > get rolesRequired => ["part_category " ];
30
+ List <String > get rolesRequired => ["part " ];
31
31
32
32
@override
33
33
Map <String , Map <String , dynamic >> formFields () {
Original file line number Diff line number Diff line change @@ -644,7 +644,7 @@ class InvenTreeStockLocation extends InvenTreeModel {
644
644
static const String MODEL_TYPE = "stocklocation" ;
645
645
646
646
@override
647
- List <String > get rolesRequired => ["stock_location " ];
647
+ List <String > get rolesRequired => ["stock " ];
648
648
649
649
String get pathstring => getString ("pathstring" );
650
650
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ void main() {
118
118
119
119
// Check available permissions
120
120
assert (api.checkRole ("part" , "change" ));
121
- assert (api.checkRole ("stock_location " , "delete" ));
121
+ assert (api.checkRole ("stock " , "delete" ));
122
122
assert (! api.checkRole ("part" , "weirdpermission" ));
123
123
assert (api.checkRole ("blah" , "bloo" ));
124
124
You can’t perform that action at this time.
0 commit comments