FIX: allow selecting site's default theme from preference

This commit is contained in:
Osama Sayegh
2018-08-10 14:12:02 +03:00
committed by GitHub
parent 2b2612d0f5
commit 865cb3feb9
3 changed files with 26 additions and 0 deletions

View File

@@ -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