mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
FEATURE: anonymous_account_duration_minutes , cycle anon accounts after N minutes from last post
fixes it so anon users can not like stuff
This commit is contained in:
@ -104,9 +104,7 @@ class CurrentUserSerializer < BasicUserSerializer
|
||||
end
|
||||
|
||||
def is_anonymous
|
||||
SiteSetting.allow_anonymous_posting &&
|
||||
object.trust_level >= 1 &&
|
||||
object.custom_fields["master_id"].to_i > 0
|
||||
object.anonymous?
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user