Display supervoter pref in API and CSS (#2641)

This commit is contained in:
Type-kun
2016-08-27 16:11:48 +05:00
parent 7b7a8cf423
commit 92b5e5e00d
2 changed files with 2 additions and 1 deletions

View File

@@ -616,7 +616,7 @@ class User < ActiveRecord::Base
end
def method_attributes
list = [:is_banned, :can_approve_posts, :can_upload_free, :level_string]
list = [:is_banned, :can_approve_posts, :can_upload_free, :is_super_voter, :level_string]
if id == CurrentUser.user.id
list += [:remaining_api_hourly_limit]
end