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

View File

@ -160,11 +160,11 @@ module UserGuardian
end
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
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