Project

General

Profile

Actions

Refactor #15621

open

Change role builtin attribute to boolean

Added by Himanshu Prakash almost 8 years ago. Updated about 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Users, Roles and Permissions
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

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

How reproducible:
always

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

Actual results:
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.

Expected results:
'builtin' parameter defaults to 'false'


Related issues 2 (0 open2 closed)

Related to Foreman - Bug #15108: Cloned role has no builtin valueClosedMarek Hulán05/20/2016Actions
Related to Foreman - Bug #16828: Cloned roles should have `builtin` value 0ClosedSwapnil Abnave10/07/2016Actions
Actions

Also available in: Atom PDF