rubocop
This commit is contained in:
parent
dc63f45d35
commit
7805145a7d
|
@ -565,5 +565,4 @@ class Guardian
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue