Commit c490430f authored by Marin Jankovski's avatar Marin Jankovski

Fix leftover user checks for git_annex after refactoring

parent 18cbfd82
......@@ -68,9 +68,7 @@ module Gitlab
when *PUSH_COMMANDS
push_access_check(changes)
when *GIT_ANNEX_COMMANDS
if actor.is_a? Key
git_annex_access_check(actor.user, project, changes)
end
git_annex_access_check(project, changes)
else
build_status_object(false, "The command you're trying to execute is not allowed.")
end
......@@ -283,8 +281,8 @@ module Gitlab
GitAccessStatus.new(status, message)
end
def git_annex_access_check(user, project, changes)
unless user && user_allowed?(user)
def git_annex_access_check(project, changes)
unless user && user_allowed?
return build_status_object(false, "You don't have access")
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