Commit ef944e83 authored by Valery Sizov's avatar Valery Sizov

Git hook messages: wiki access fix

parent f34d5d8a
module Gitlab
class GitAccessWiki < GitAccess
def change_allowed_check(user, project, change)
def change_access_check(user, project, change)
if user.can?(:write_wiki, project)
build_status_object(true)
else
......
......@@ -13,7 +13,7 @@ describe Gitlab::GitAccessWiki do
subject { access.push_access_check(user, project, changes) }
it { subject.should be_true }
it { subject.allowed?.should be_true }
end
def changes
......
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