mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Allow silenced users to like / bookmark, just not flag.
This commit is contained in:
@@ -37,8 +37,8 @@ module PostGuardian
|
||||
|
||||
result = if authenticated? && post && !@user.anonymous?
|
||||
|
||||
# Silenced users can't act on posts
|
||||
return false if @user.silenced?
|
||||
# Silenced users can't flag
|
||||
return false if is_flag && @user.silenced?
|
||||
|
||||
# post made by staff, but we don't allow staff flags
|
||||
return false if is_flag &&
|
||||
|
||||
Reference in New Issue
Block a user