mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 03:09:00 +08:00
rubocop
This commit is contained in:
parent
dc63f45d35
commit
7805145a7d
|
@ -565,5 +565,4 @@ class Guardian
|
|||
false
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user