mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: allow selecting site's default theme from preference
This commit is contained in:
@@ -359,6 +359,8 @@ class Guardian
|
||||
end
|
||||
|
||||
def allow_themes?(theme_ids)
|
||||
return true if theme_ids.blank?
|
||||
|
||||
if is_staff? && (theme_ids - Theme.theme_ids).blank?
|
||||
return true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user