* Add: #883 管理者の設定したカスタムCSSをユーザー単位で無効にするオプション * ラベル変更
This commit is contained in:
parent
b30086dc6b
commit
943db145e4
12 changed files with 56 additions and 14 deletions
|
@ -235,6 +235,12 @@ module ApplicationHelper
|
|||
full_asset_url(instance_presenter.mascot&.file&.url || frontend_asset_path('images/elephant_ui_plane.svg'))
|
||||
end
|
||||
|
||||
def server_css?
|
||||
return true if current_account&.user.nil?
|
||||
|
||||
current_account.user.setting_use_server_css
|
||||
end
|
||||
|
||||
def user_custom_css?
|
||||
return false if current_account&.user.nil?
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue