mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-09 20:56:08 +10:00
write_ was renamed to create_ modify_ was renamed to update_ So now in update action we have next code def create can?(current_user, :create_issue, @issue) end def update can?(current_user, :update_issue, @issue) end Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
12 lines
290 B
Ruby
12 lines
290 B
Ruby
module Gitlab
|
|
class GitAccessWiki < GitAccess
|
|
def change_access_check(change)
|
|
if user.can?(:create_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
|