UseSingleUserRole
func UseSingleUserRole() Option
Link
Execute
UseSingleUserRole configures permissions to only allow one role per user.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoland/boards2/v1/permissions.UseSingleUserRole()"
WithSuperRole
func WithSuperRole(r boards.Role) Option
Link
Execute
WithSuperRole configures permissions to have a super role. A super role is the one that have all permissions. This type of role doesn't need to be mapped to any permission.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoland/boards2/v1/permissions.WithSuperRole( )"
New
func New(options ...Option) *Permissions
Link
Execute
New creates a new permissions type.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoland/boards2/v1/permissions.New( )"