AppRole class

Papel de usuário no admin: um nome e o conjunto de permissões. * libera tudo. Use AdminPermissions para os papéis e permissões padrão, ou crie os seus. O FlenxAdminApp esconde itens de menu que o papel não pode acessar.

Constructors

AppRole(String name, Set<String> permissions)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
final
permissions Set<String>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

can(String? permission) bool
O papel pode acessar permission? (* = acesso total.)
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

byName(String? name, {AppRole fallback = AdminPermissions.viewer}) AppRole