suspend fun checkIsAdmin(authorizationContext: GropiusAuthorizationContext, errorMessage: String)

Checks if the user defined by authorizationContext is a global admin

Parameters

authorizationContext

defines the user to check for isAdmin

Throws

if checkPermission is true and the user is not an admin