blob: f46c11db1db051fc17d6afa3ec5577394a6d75bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
# frozen_string_literal: true
module Projects
module PagesHelper
def can_create_pages_custom_domains?(current_user, project)
current_user.can?(:update_pages, project) &&
(Gitlab.config.pages.external_http || Gitlab.config.pages.external_https) &&
project.can_create_custom_domains?
end
end
end
|