Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git_access_wiki.rb « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 73d99b96202af29ec1ccd38e35d7a57301c38f27 (plain)
1
2
3
4
5
6
7
8
9
10
11
module Gitlab
  class GitAccessWiki < GitAccess
    def change_access_check(change)
      if user.can?(:write_wiki, project)
        build_status_object(true)
      else
        build_status_object(false, "You don't have access")
      end
    end
  end
end