Project

General

Profile

Bug #25936

Compute Resource filter does not correctly allow Refresh Cache

Added by Jeff Sparrow over 1 year ago. Updated 12 months ago.

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

Description

I am trying to set up new filters and found one I believe doesnt work. It appears according to:
https://github.com/theforeman/foreman/blob/c236a809e044804f801440174f27b9a5c5c561ca/app/registries/foreman/access_permissions.rb#L76
that the refresh cache is part of the view_compute_resources permission. When I divide the Compute Resources into two sections; one for unlimited access and one to control a specific compute resource, the option to Refresh Cache on the compute resources goes away for everyone except admins.

Am I setting this correctly, everything else works as expected:
https://i.imgur.com/3enDPqM.png

How do I get refresh cache to show for non admins, but still prevent everything else in my NON unlimited filter?

Associated revisions

Revision 28a5fd82 (diff)
Added by yifat makias 12 months ago

Fixes #25936 - CR filter correctly allow Refresh Cache

History

#1 Updated by yifat makias 12 months ago

  • Assignee set to yifat makias
  • Status changed from New to Assigned

#2 Updated by yifat makias 12 months ago

  • Bugzilla link set to 1767497

#3 Updated by The Foreman Bot 12 months ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/7152 added

#4 Updated by The Foreman Bot 12 months ago

  • Fixed in Releases 2.0.0 added

#5 Updated by yifat makias 12 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF