is Admin

private open fun isAdmin(userId: String, token: String): Boolean

Method to get whether the user who request to execute an action is a ADMIN

Return

whether the user is a ADMINboolean

Parameters

userId

The identifier of the user

token

The token of the user