Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TruncateString ¶ added in v0.1.59
TruncateString replaces newlines with spaces and truncates s to maxLen characters, appending "..." if truncated.
Types ¶
type Permissions ¶ added in v0.1.59
Permissions configures RBAC with owner and member roles. An empty config (all slices nil/empty) allows all users as owners (bootstrap mode).
func (Permissions) GetRole ¶ added in v0.1.59
func (p Permissions) GetRole(authorID string, authorRoles []string) Role
GetRole returns the role for the given author based on grants. Returns "" when the author is not granted any role.
func (Permissions) IsEmpty ¶ added in v0.1.59
func (p Permissions) IsEmpty() bool
IsEmpty returns true when no role grants are configured.
Click to show internal directories.
Click to hide internal directories.