2cf7f09b1e
This reverts commit 530f5158e2
.
See !4892.
Signed-off-by: Rémy Coutable <remy@rymai.me>
11 lines
298 B
Ruby
11 lines
298 B
Ruby
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
|