Description of problem: console should disable the install button for users who only have view permisson Version-Release number of selected component (if applicable): 4.5.0-0.nightly-2020-04-02-195956 How reproducible: Always Steps to Reproduce: 1. granted the normal user aggregate-olm-view clusterrole to have the view operatorhub page 2. goto operatorhub page, click 3scale operators 3. Actual results: The "Installed Namespace" dropdown always loading on the subscription creation page since the user have no permisson to view all ns Expected results: console should disable the install button for users who only have view permisson Additional info:
(In reply to shahan from comment #0) > The "Installed Namespace" dropdown always loading on the subscription > creation page since the user have no permisson to view all ns This shouldn't be the case because we use the projects API to populate the dropdown. All users can list projects. I could see it happening if the *active* project is somehow a project the user can't access. Then the dropdown might keep loading since the selected item isn't in the list. Can you confirm the project selected in the project dropdown just below the masthead is a project the current user has access to? If so, it's kind of hard to get in this situation. But we should handle it better. > console should disable the install button for users who only have view > permisson This is not so simple because you selected the install mode and target namespace on the next page. There's not a good access review we can make until we know the target namespace. It might be possible to check the user's access to the *current* namespace, although it could incorrectly disable the button when the user has permission to install in a different namespace or the `openshift-operators` namespace for global operators.
The underlying problems with the dropdown loading is the same as bug 1845817. *** This bug has been marked as a duplicate of bug 1845817 ***