This commit is contained in:
Jahan Gagan 2020-07-23 21:45:34 +05:30
parent dc63f45d35
commit 7805145a7d
2 changed files with 2 additions and 3 deletions

View File

@ -565,5 +565,4 @@ class Guardian
false false
end end
end end
end end

View File

@ -160,11 +160,11 @@ module UserGuardian
end end
def can_upload_profile_header? def can_upload_profile_header?
return is_staff? || user.trust_level >= TrustLevel[SiteSetting.min_trust_level_to_allow_profile_background.to_i] is_staff? || user.trust_level >= TrustLevel[SiteSetting.min_trust_level_to_allow_profile_background.to_i]
end end
def can_upload_user_card_background? def can_upload_user_card_background?
return is_staff? || user.trust_level >= TrustLevel[SiteSetting.min_trust_level_to_allow_user_card_background.to_i] is_staff? || user.trust_level >= TrustLevel[SiteSetting.min_trust_level_to_allow_user_card_background.to_i]
end end
end end