mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Change username view was not loading. Also you can always edit yourself.
This commit is contained in:
@@ -12,7 +12,8 @@ class CurrentUserSerializer < BasicUserSerializer
|
||||
:topic_count,
|
||||
:enable_quoting,
|
||||
:external_links_in_new_tab,
|
||||
:trust_level
|
||||
:trust_level,
|
||||
:can_edit
|
||||
|
||||
def include_site_flagged_posts_count?
|
||||
object.staff?
|
||||
@@ -30,4 +31,8 @@ class CurrentUserSerializer < BasicUserSerializer
|
||||
PostAction.flagged_posts_count
|
||||
end
|
||||
|
||||
def can_edit
|
||||
true
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user