Allow modification of "Create new Picture" product feature on a role. #18982
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1727948
The ability to edit a role to enable the Create new Picture product feature was missing.
Prior to this PR the role associated with the user used to issue the Create new Picture
API call must have Everything enable for Product Features.
This PR adds that functionality under the API Product Features, as this functionality is
only available from the API.
Steps for Testing/QA [Optional]
Save the below script and set the image omitted due to size to be a valid image
in file, e.g.: /tmp/create_one_pictures.rb
Create a new role in ManageIQ
Edit the role and uncheck the Everything box
Click all other boxes next to all other product features, making sure the new
API/Pictures/Create new Picture Product Feature is checked.
Create a new group with the new role create above
Create a new user named, for example, new_user_2
Run the following shell commands on a separate system, e.g.
a laptop on the same network as the ManageIQ appliance:
Confirm the new picture was create on the appliance