gitlab-org--gitlab-foss/lib/gitlab/git_access_wiki.rb
2015-05-13 09:41:55 +02:00

11 lines
289 B
Ruby

module Gitlab
class GitAccessWiki < GitAccess
def change_access_check(change)
if user.can?(:write_wiki, project)
build_status_object(true)
else
build_status_object(false, "You are not allowed to write to this project's wiki.")
end
end
end
end