-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
None
UI should not allow users without permission to submit the register disconnected cluster form. If they try to submit it, they will get an error from backend, but this is not great UX and we should disable the button according to permission.
The permissions UI should check using the `self_acceess_review` endpoint is -
1. CREATE action on subscription resource
2. UPDATE action on subscription resource, with the ID returned upon registration. Needs discussion
Steps to reproduce -
- Login to OCM UI with a user who doesn't have the permission described above ^
(For example, a user that is configured with non Red Hat email address. If you choose this method you should test with prod API) - Go to https://console.redhat.com/openshift/register
- Fill the form and submit it.
Actual Results:
There is an error message.
Expected results:
The button to submit the form should be disabled according to permission.
Open question -
Should we also disable the "Register cluster" button in https://console.redhat.com/openshift/cluster-list ?
- is related to
-
OCMUI-3165 Disable Create OSD and/or Rosa wizards on Create Cluster page if user doesn't have create cluster permissions
-
- Closed
-