diff options
Diffstat (limited to 'app/finders/access_requests_finder.rb')
-rw-r--r-- | app/finders/access_requests_finder.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/access_requests_finder.rb b/app/finders/access_requests_finder.rb index 2cc8a978877..9b1407e2971 100644 --- a/app/finders/access_requests_finder.rb +++ b/app/finders/access_requests_finder.rb @@ -24,6 +24,6 @@ class AccessRequestsFinder private def can_see_access_requests?(current_user) - source && Ability.allowed?(current_user, :"admin_#{source.class.to_s.underscore}", source) + source && Ability.allowed?(current_user, :admin_member_access_request, source) end end |