summaryrefslogtreecommitdiff
path: root/app/finders/issuable_finder/params.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/finders/issuable_finder/params.rb')
-rw-r--r--app/finders/issuable_finder/params.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/finders/issuable_finder/params.rb b/app/finders/issuable_finder/params.rb
index 32d50802537..e59c2224594 100644
--- a/app/finders/issuable_finder/params.rb
+++ b/app/finders/issuable_finder/params.rb
@@ -195,6 +195,11 @@ class IssuableFinder
project || group
end
+ def user_can_see_all_issuables?
+ Ability.allowed?(current_user, :read_all_resources)
+ end
+ strong_memoize_attr :user_can_see_all_issuables?
+
private
def projects_public_or_visible_to_user