Bug #12432
closed
User edit roles tab, no roles found for admin user
Added by Alon Goldboim about 9 years ago.
Updated over 6 years ago.
Category:
Users, Roles and Permissions
|
Description
When trying to append a role to a user(having roles in the db), the role selection indicate "None Found".
- Related to Bug #11924: Substitute .scoped by .where(nil) to force return relation added
- Subject changed from User edit roles tab, no roles found. to User edit roles tab, no roles found for admin user
- Category set to Users, Roles and Permissions
- Translation missing: en.field_release 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).
- Status changed from New to Ready For Testing
- Assignee set to Alon Goldboim
- Pull request https://github.com/theforeman/foreman/pull/2901 added
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Also available in: Atom
PDF