Skip to content

GrantModRightsView

CVoelcker edited this page Jul 16, 2017 · 1 revision

Introduction

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

Method Details

'get'

URL: user_id

Returns true, when the user in the url is a moderator

Request

Response

True|False (200)

'post'

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)
Clone this wiki locally