User without hostgroup view permissions can't create discover rules
|Assigned To:||Lukas Zapletal|
|Target version:||Plugin 6.0|
|Velocity based estimate||-|
I'm not sure this is a valid set of permissions, I created a user to test something else with these roles:
- Discovery Manager
- Discovery Reader
- View hosts
I then logged in with that user and created a discovery rule,
there was a notice that the rule was created successfully but I couldn't see the rule.
Checking as a user with permissions I can see the rules where created.
Then trying to auto_provision a host doesn't give a notice about no permissions but an error:
undefined method `transaction' for nil:NilClass
#9 Updated by Lukas Zapletal over 1 year ago
- Subject changed from User without hostgroup edit permissions can't see discover rules to User without hostgroup view permissions can't create discover rules
- Status changed from Closed to New
Oh permissions are still valid bug, reproduced differently now - hostgroup dropdown is empty.
#11 Updated by Anonymous over 1 year ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset foreman_discovery|1d7465f68110ad249f2b81c540767e22510d3416.