package main import ( "testing" boards2 "gno.land/r/gnoland/boards2/v1" ) const ( owner address = "g16jpf0puufcpcjkph5nxueec8etpcldz7zwgydq" // @devx user address = "g1vh7krmmzfua5xjmkatvmx09z37w34lsvd2mxa5" ) var bid boards2.BoardID func init() { testing.SetRealm(testing.NewUserRealm(owner)) bid = boards2.CreateBoard(cross, "test123", false) testing.SetRealm(testing.NewUserRealm(user)) boards2.RequestInvite(cross, bid) } func main() { // Caller is not a member and has no permission to invite testing.SetRealm(testing.NewUserRealm(user)) boards2.AcceptInvite(cross, bid, user) } // Error: // unauthorized