BigW Consortium Gitlab

git_access_wiki.rb 290 Bytes
Newer Older
1 2
module Gitlab
  class GitAccessWiki < GitAccess
3
    def change_access_check(change)
4
      if user.can?(:create_wiki, project)
5 6
        build_status_object(true)
      else
7
        build_status_object(false, "You are not allowed to write to this project's wiki.")
8
      end
9 10 11
    end
  end
end