Project

General

Profile

Actions

Bug #12278

closed

Foreman fails when creating a role if default user has 2 or more filters with same permission

Added by Marek Hulán over 8 years ago. Updated almost 6 years ago.

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

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.


Related issues 1 (0 open1 closed)

Related to Foreman - Refactor #12147: move rails3 compatible changes from the rails4 branch to developClosedTom Caspy10/13/2015Actions
Actions #1

Updated by Marek Hulán over 8 years ago

  • Related to Refactor #12147: move rails3 compatible changes from the rails4 branch to develop added
Actions #2

Updated by The Foreman Bot over 8 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2861 added
  • Pull request deleted ()
Actions #3

Updated by Marek Hulán over 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF