Change role builtin attribute to boolean
Description of problem:
On cloning an user role, builtin parameter is set to null, causing the role to be treat as 'builtin' (unable to remove it) despite the fact, that API reports builtin: no
Version-Release number of selected component (if applicable):
6.2.0 beta GA17.0
Steps to Reproduce:
1. navigate to Administer -> Roles
2. choose/create one of the roles which are not set as 'builtin' (in UI they are clickable)
3. clone them
Newly created role displayed as builtin despite the fact that `hammer role info` reports on it as 'builtin: no'.
listing the roles using API (curl -k https://<sat6>/api/v2/roles) shows, that the 'builtin' parameter is set to null.
'builtin' parameter defaults to 'false'
#4 Updated by Marek Hulán over 4 years ago
- Subject changed from WebUI - Cloned roles saved with nil value for builtin attribute to Change role builtin attribute to boolean
- Category set to Users, Roles and Permissions
The original bug was solved as part of other change, meanwhile a PR for this issue was opened changing the builtin flag to boolean which long term seems as a good move so I'm changing the subject of this issue to reflect the PR.