users: set is_deleted flag when account is deleted.
* Set the `is_deleted` flag when the user is deleted. * Return the `is_deleted` flag in the /users.json API.
This commit is contained in:
@@ -65,7 +65,7 @@ class UserPolicy < ApplicationPolicy
|
||||
def api_attributes
|
||||
attributes = %i[
|
||||
id created_at name inviter_id level level_string
|
||||
post_upload_count post_update_count note_update_count is_banned
|
||||
post_upload_count post_update_count note_update_count is_banned is_deleted
|
||||
]
|
||||
|
||||
if record.id == user.id
|
||||
|
||||
Reference in New Issue
Block a user