gitlab-org--gitlab-foss/lib/gitlab/git_access_wiki.rb
Valery Sizov 53bf52f191 Better message for failed pushes because of git hooks
Conflicts:
	lib/gitlab/git_access.rb
	spec/lib/gitlab/git_access_spec.rb
2014-11-18 13:10:07 +02:00

11 lines
274 B
Ruby

module Gitlab
class GitAccessWiki < GitAccess
def change_allowed_check(user, project, change)
if user.can?(:write_wiki, project)
build_status_object(true)
else
build_status_object(false, "You don't have access")
end
end
end
end