Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAllowedExec ¶
IsAllowedExec checks if a AuthenticatedUser is allowed to execute an Action
func IsAllowedView ¶
IsAllowedView checks if a User is allowed to view an Action
Types ¶
type AuthenticatedUser ¶
type AuthenticatedUser struct { Username string Usergroup string // contains filtered or unexported fields }
User respresents a person.
func UserFromContext ¶
func UserFromContext(ctx context.Context, cfg *config.Config) *AuthenticatedUser
UserFromContext tries to find a user from a grpc context
Click to show internal directories.
Click to hide internal directories.