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:
@ -725,6 +725,12 @@ class User < ActiveRecord::Base
|
||||
UserProfile.create(user_id: id)
|
||||
end
|
||||
|
||||
def anonymous?
|
||||
SiteSetting.allow_anonymous_posting &&
|
||||
trust_level >= 1 &&
|
||||
custom_fields["master_id"].to_i > 0
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def badge_grant
|
||||
|
Reference in New Issue
Block a user