Display supervoter pref in API and CSS (#2641)
This commit is contained in:
@@ -94,6 +94,7 @@ module ApplicationHelper
|
||||
user_class = user.level_class
|
||||
user_class = user_class + " user-post-approver" if user.can_approve_posts?
|
||||
user_class = user_class + " user-post-uploader" if user.can_upload_free?
|
||||
user_class = user_class + " user-super-voter" if user.is_super_voter?
|
||||
user_class = user_class + " with-style" if CurrentUser.user.style_usernames?
|
||||
if options[:raw_name]
|
||||
name = user.name
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user