-
Story
-
Resolution: Done
-
Normal
-
None
-
None
-
Product / Portfolio Work
-
5
-
False
-
-
False
-
None
-
Unset
-
None
-
-
-
Plat-Ex UI Sprint 39, Plat-Ex UI Sprint 40
Description
Only users with certain rights can perform edit and delete actions.
Technical details
Based on the table in https://issues.redhat.com/browse/CRCPLAN-310 user can perform these actions:
WS type | edit | delete |
---|---|---|
Root | ❌ | ❌ |
Default | ✅ | ❌ |
Ungroupped | ❌ | ❌ |
Standard | ✅ | ✅ |
If the action is allowed for workspace type we first have to check permissions list by calling getPermissions from chrome API. If the user has inventory:groups:write with empty resource array they should have the action allowed. If the user has any resource definition only workspaces with matching ID should be allowed.
If the action is either not allowed based on the type and or not allowed based on the resource definition permission we should disable the action in the dropdown.