Commit 72c71d34 authored by Mark Chao's avatar Mark Chao

Cache can_access_git? method

parent 472a116b
......@@ -98,7 +98,7 @@ module Gitlab
@permission_cache ||= {}
end
def can_access_git?
request_cache def can_access_git?
user && user.can?(:access_git)
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment