Select Git revision
Forked from
GitLab.org / GitLab FOSS
27488 commits behind the upstream repository.
-
Dmitriy Zaporozhets authored
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>
Dmitriy Zaporozhets authoredwrite_ 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>
git_access_wiki.rb 290 B
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