-
Notifications
You must be signed in to change notification settings - Fork 2
GrantModRightsView
CVoelcker edited this page Jul 16, 2017
·
1 revision
The GrantModRightsView class is used to promote a user to a moderator or in other words add him*her to the usergroup 'moderator'. It also provides a get method to show if a user is already moderator
URL: user_id
Returns true, when the user in the url is a moderator
Request
Response
True|False (200)
Header: user_id Request:
{ }
Note: May be user for other permissions in the future
Response:
"successfully promoted " + to_be_promoted.username (200)
"the user \" "+ to_be_promoted.username +"\" is already a moderator" (200)