Uploaded image for project: 'Hybrid Cloud Console'
  1. Hybrid Cloud Console
  2. RHCLOUD-39840

Disable option to delete and edit WS if it is system WS

XMLWordPrintable

    • Product / Portfolio Work
    • 5
    • False
    • Hide

      None

      Show
      None
    • 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.

              apinkert-insights Austin Pinkerton
              khala-1 Karel Hala
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: