Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnauthenticated = status.Error(codes.Unauthenticated, "Unauthenticated user") ErrPermissionDenied = status.Error(codes.PermissionDenied, "Permission denied") ErrInternal = status.Error(codes.Internal, "Internal") )
Functions ¶
func CheckAdminRole ¶
func CheckAdminRole(ctx context.Context) (*eventproto.Editor, error)
func CheckRole ¶
func CheckRole( ctx context.Context, requiredRole accountproto.Account_Role, getAccountFunc func(email string) (*accountproto.GetAccountResponse, error), ) (*eventproto.Editor, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.