Users: add Contributor and Approver user levels

This commit is contained in:
nonamethanks
2022-10-21 14:59:15 +02:00
parent f092bc28ee
commit ca31e7a47c
29 changed files with 105 additions and 251 deletions

View File

@@ -56,9 +56,8 @@ class UserPolicy < ApplicationPolicy
def api_attributes
attributes = %i[
id created_at name inviter_id level
id created_at name inviter_id level level_string
post_upload_count post_update_count note_update_count is_banned
can_approve_posts can_upload_free level_string
]
if record.id == user.id