gitlab-org--gitlab-foss/lib/gitlab/git_access_wiki.rb
2015-03-24 14:11:48 +01:00

11 lines
258 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 don't have access")
end
end
end
end