hasPermission(role: Role,permission: Permission): boolean
Checks whether role grants permission. The server's can and the
client's can both wrap it.
role: Role
permission: Permission
hasPermission(role: Role,permission: Permission): boolean
Checks whether role grants permission. The server's can and the
client's can both wrap it.
role: Role
permission: Permission
import { hasPermission } from "shared/permissions.ts";