FIX: Change username view was not loading. Also you can always edit yourself.

This commit is contained in:
Robin Ward
2013-06-11 12:30:38 -04:00
parent e2ce4947d7
commit 82116d5db5
3 changed files with 15 additions and 1 deletions

View File

@@ -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