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).
Click to show internal directories.
Click to hide internal directories.