mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Improvements to user drafts (#6226)
* drafts in user profile: only show to user herself (not to admins), use avatar replying to (instead of topic OP), add keyboard shortcut for drafts, simplify display labels * use JSON when testing Draft.stream
This commit is contained in:
@@ -30,10 +30,6 @@ module UserGuardian
|
||||
is_me?(user) || is_admin?
|
||||
end
|
||||
|
||||
def can_see_drafts?(user)
|
||||
is_me?(user) || is_admin?
|
||||
end
|
||||
|
||||
def can_silence_user?(user)
|
||||
user && is_staff? && not(user.staff?)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user