Actions
Bug #12278
closedForeman fails when creating a role if default user has 2 or more filters with same permission
Status:
Closed
Priority:
Normal
Assignee:
Category:
Users, Roles and Permissions
Target version:
Description
After https://github.com/theforeman/foreman/commit/1f5d2516f7acd537cf996aeb3f52e0bf9c17c2d7 we build a role with permissions of default user. If default user has two or more filters with same permission (valid setup), the verification of found collection fails (https://github.com/theforeman/foreman/blob/develop/app/models/role.rb#L135). We have to make the list unique.
Actions