Search Apps Documentation Source Content File Folder Download Copy Actions Download

permissions package

Functions

UseSingleUserRole

func UseSingleUserRole() Option

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()"

Result

WithSuperRole

func WithSuperRole(r boards.Role) Option

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.

Param

Command

gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land" -data "gno.land/r/gnoland/boards2/v1/permissions.WithSuperRole()"

Result

New

func New(options ...Option) *Permissions

New creates a new permissions type.

Param

Command

gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land" -data "gno.land/r/gnoland/boards2/v1/permissions.New()"

Result