Bug #22766
closedpuppet classes removed from host
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1551447
Description of problem:
Puppet classes are being removed from Hosts when working with non-admin user.
If I submit host information with a non-admin user, `puppet` classes directly assigned to this are removed upon submitting the information.
How reproducible:
- Always
Steps to Reproduce:
1. Select and edit a host
2. Switch to the "puppet classes" tab and add a puppet class from the available classes. -> it's in the "included classes" list.
3. Submit the change and verify, that the class is included
4. use another satellite user with less privileges.
5. Select and edit the same host like in step #1
6. Change nothing... but press "Submit"
7. If you verify the "included" classes" list, the entry from step #2 is vanished.
Actual results:
- `puppet` classes removed from host.
Expected results:
- `puppet` classes should not be removed in such situation.
Updated by Ivan Necas almost 7 years ago
- Subject changed from puppet classes removed from host to puppet classes removed from host
- Category changed from Inventory to Users, Roles and Permissions
Updated by The Foreman Bot about 6 years ago
- Status changed from New to Ready For Testing
- Assignee set to Ori Rabin
- Pull request https://github.com/theforeman/foreman/pull/6364 added
Updated by Ori Rabin about 6 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset bc19503c8a3b9a3d4aee8476258df7c70fedebb3.