Project

General

Profile

Actions

Bug #14169

open

Non-admin users cannot see filters for roles

Added by Shimon Shtein about 8 years ago. Updated over 6 years ago.

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

Description

How to reproduce:

  1. Create a user
  2. Create a role with following permissions: view, create, add, remove filters; view, edit roles; view, assign organizations; view, assign locations;
  3. Assign the new role to the new user
  4. login as a user
  5. Go to Administer -> roles
  6. Press 'Filters' button for any role except for the new one.

Expected: list of filters for that role

Actual: empty list

While investigating, I have found that the problem starts in app/services/authorizer.rb:25
The query produced by user.filters contains a filter on role_id which is not needed there.

Actions #1

Updated by Dominic Cleal about 8 years ago

  • Category set to Users, Roles and Permissions
Actions #2

Updated by Ondřej Pražák over 6 years ago

  • Bugzilla link set to 1460907
Actions

Also available in: Atom PDF