2014-10-07 09:05:24 -04:00
|
|
|
module Gitlab
|
|
|
|
class GitAccessWiki < GitAccess
|
2014-11-24 09:21:35 -05:00
|
|
|
def change_access_check(user, project, change)
|
2014-11-14 11:23:55 -05:00
|
|
|
if user.can?(:write_wiki, project)
|
|
|
|
build_status_object(true)
|
|
|
|
else
|
|
|
|
build_status_object(false, "You don't have access")
|
|
|
|
end
|
2014-10-07 09:05:24 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|