Bug 1825698 - Permission 'create_{organization,location}' has restrictions for org/loc creation
Summary: Permission 'create_{organization,location}' has restrictions for org/loc crea...
Status: NEW
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Users & Roles
Version: 6.6.0
Hardware: Unspecified
OS: Unspecified
unspecified vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Peter Ondrejka
Depends On:
TreeView+ depends on / blocked
Reported: 2020-04-20 00:37 UTC by Ondřej Ezr
Modified: 2020-05-21 01:19 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed:
Target Upstream Version:

Attachments (Terms of Use)

System ID Priority Status Summary Last Updated
Foreman Issue Tracker 29570 Normal New Permission 'create_{organization,location}' has restrictions for org/loc creation 2020-07-14 08:56:58 UTC

Internal Links: 1761404

Description Ondřej Ezr 2020-04-20 00:37:34 UTC
Description of problem:
Role with permission 'create_location' or 'create_organization' doesn't allow creation of Org/Loc if it has assigned Orgs or Locs.

Version-Release number of selected component (if applicable):
Satellite 6.6

How reproducible:

Steps to Reproduce:
1. Create role with 'create_location'/'create_organization' perm
2. Assign the role Organization and Location
3. Assign the role to a user
4. Try to create organization

Actual results:
You don't have permission create_locations with attributes that you have specified or you don't have access to specified locations or organizations

Expected results:
Organization should be created OR the error message should be more specific, for the user to know what to do.

Additional info:
This is expected as the role is scoped to given Taxonomy, but the created Loc/Org is not within the assigned Taxonomy.
But as a user, I'd be really confused about this and didn't know what to do.

Comment 3 Ondřej Ezr 2020-04-20 00:39:02 UTC
Created redmine issue https://projects.theforeman.org/issues/29570 from this bug

Note You need to log in before you can comment on or make changes to this bug.