permissions

package
v0.4.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Permissions

type Permissions struct {
	CanPublicComment bool
	CanChangeStatus  bool
	CanAssignTickets bool
	CanDeleteTickets bool
	CanAddCC         bool
	IsLightAgent     bool
	Role             string // "admin", "agent", "light_agent"
}

Permissions describes what the authenticated user is allowed to do.

func FromUser

func FromUser(u *types.User) Permissions

FromUser derives permissions from a Zendesk User. Returns full permissions when user is nil (fail-open — the Zendesk API enforces restrictions server-side regardless).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL