blob: f71d3575909c68567203edd33958e3da97b5dea9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
module Gitlab
class GitAccessWiki < GitAccess
def change_access_check(change)
if user_access.can_do_action?(:create_wiki)
build_status_object(true)
else
build_status_object(false, "You are not allowed to write to this project's wiki.")
end
end
end
end
|