Project

General

Profile

Bug #12432

User edit roles tab, no roles found for admin user

Added by Alon Goldboim about 4 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Authorization
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

When trying to append a role to a user(having roles in the db), the role selection indicate "None Found".


Related issues

Related to Foreman - Bug #11924: Substitute .scoped by .where(nil) to force return relationClosed2015-09-22

Associated revisions

Revision b2a959ec (diff)
Added by Alon Goldboim about 4 years ago

Fixes #12432 - Changed roles model so admin could see/attach all permissions

History

#1 Updated by Dominic Cleal about 4 years ago

  • Related to Bug #11924: Substitute .scoped by .where(nil) to force return relation added

#2 Updated by Dominic Cleal about 4 years ago

  • Subject changed from User edit roles tab, no roles found. to User edit roles tab, no roles found for admin user
  • Category set to Authorization
  • Legacy Backlogs Release (now unused) set to 71

Role.for_current_user should have had where('0=0') or similar to replace {} rather than 0!=0. Introduced in #11924, appears to be the only instance of it (but please double check).

#3 Updated by The Foreman Bot about 4 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Alon Goldboim
  • Pull request https://github.com/theforeman/foreman/pull/2901 added

#4 Updated by Alon Goldboim about 4 years ago

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

Also available in: Atom PDF