Top.Mail.Ru
box.schema.role.exists() | Tarantool
 

box.schema.role.exists()

box.schema.role.exists()

box.schema.role.exists(role-name)

Return true if a role exists; return false if a role does not exist.

Parameters:
  • role-name (string) – the name of the role
Rtype:

bool

Example:

box.schema.role.exists('Accountant')