Project

General

Profile

Bug #24677

No menu entry for Content -> Subscriptions for user with Viewer role

Added by Walden Raines over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
High
Category:
Subscriptions
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1612989

User with Viewer role (or any other role that has only "view_subscriptions" in Subscription resource) has no menu entry for Content -> Subscriptions.

Such user can still access $HOST/subscriptions directly, but they will encounter swarm of issues there (listed below).

Version-Release number of selected component (if applicable):
satellite-6.4.0-10
katello-3.7.0-4

Steps to Reproduce:
1. Create new user with role "Viewer"
2. Try to navigate to Content -> Subscriptions
3. Access $HOST/subscriptions directly

Actual results:
There is no menu entry.

Page can be accessed directly, but there are many problems with it:

  • Manage Manifest button is active. I am able to try to upload new manifest (it will fail with $HOST/katello/api/v2/organizations/61/subscriptions/upload returning 403 and cryptic "[object Object]" message in UI)
  • If there is already manifest file uploaded, error message "[object Object]" (see screenshot) will be displayed
  • If there is already manifest file uploaded, "Add Subscription" button is active. If I click it, I will see familiar "[object Object]" error message and screen asking me to import manifest.
  • Following API resources return 403 (maybe they should?): * $HOST/api/v2/settings/content_disconnected * $HOST/katello/api/v2/organizations/<id>/upstream_subscriptions
  • When trying to upload or delete manifest, following error is displayed in browser console:
    Uncaught (in promise) TypeError: Cannot read property 'humanized' of undefined
    at t.renderTaskStartedToast (katello-d1f89136d25e6dcc686b.js:1)
    at katello-d1f89136d25e6dcc686b.js:1

Associated revisions

Revision 1ead23c5 (diff)
Added by Jonathon Turel over 1 year ago

Fixes #24677 - Show Subscriptions menu link for Viewer role

History

#1 Updated by Andrew Kofink over 1 year ago

  • Triaged changed from No to Yes
  • Target version set to Katello 3.9.0

#2 Updated by Jonathon Turel over 1 year ago

  • Priority changed from Normal to High
  • Assignee set to Jonathon Turel

#3 Updated by The Foreman Bot over 1 year ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/7662 added

#4 Updated by Anonymous over 1 year ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF