From 198cb0af3e18bb8b526199d309d50df764e36552 Mon Sep 17 00:00:00 2001 From: rr- Date: Sun, 8 May 2016 16:59:25 +0200 Subject: server/users: hardcode available ranks --- API.md | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'API.md') diff --git a/API.md b/API.md index a608695..ae10e3d 100644 --- a/API.md +++ b/API.md @@ -1122,9 +1122,8 @@ data. style can be either `gravatar` or `manual`. `manual` avatar style requires client to pass also `avatar` file - see [file uploads](#file-uploads) for details. If the rank is empty and the user happens to be the first user - ever created, they're granted highest available rank, becoming an - administrator, whereas subsequent users will be given the rank indicated by - `default_rank` in the server's configuration. + ever created, become an administrator, whereas subsequent users will be + given the rank indicated by `default_rank` in the server's configuration. ## Updating user - **Request** @@ -1342,7 +1341,6 @@ A single user. "name": , "email": , "rank": , - "rankName": , "lastLoginTime": , "creationTime": , "avatarStyle": , @@ -1355,10 +1353,16 @@ A single user. - ``: the user email. It is available only if the request is authenticated by the same user, or the authenticated user can change the email. -- ``: the user rank, which effectively affects their privileges. The - available ranks are stored in the server configuration. -- ``: the text representation of user's rank. Like ``, the - possible values depend on the server configuration. +- ``: the user rank, which effectively affects their privileges. + + Possible values: + + - `"restricted"`: restricted user + - `"regular"`: regular user + - `"power"`: power user + - `"moderator"`: moderator + - `"administrator"`: administrator + - ``: the last login time, formatted as per RFC 3339. - ``: the user registration time, formatted as per RFC 3339. - ``: how to render the user avatar. -- cgit v1.3