gitlab-org--gitlab-foss/lib/gitlab/git_access_wiki.rb
2014-11-24 16:21:35 +02:00

11 lines
273 B
Ruby

module Gitlab
class GitAccessWiki < GitAccess
def change_access_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