Documentation ¶
Index ¶
- func HasPerm(user IUserContainer, perm Permission) bool
- func HasPermOld(userID int64, perms []string, permName Permission) bool
- func OpenFile(filePath string) (byteCount int, buffer *bytes.Buffer, e error)
- func Paged(limit, page int64) (offset int64)
- func QueryIDs(query string) []int64
- type IUserContainer
- type Permission
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasPerm ¶
func HasPerm(user IUserContainer, perm Permission) bool
func HasPermOld ¶ added in v1.5.8
func HasPermOld(userID int64, perms []string, permName Permission) bool
HasPerm verifies that a permission exists in a userProfile's permissions
Types ¶
type IUserContainer ¶ added in v1.5.8
Click to show internal directories.
Click to hide internal directories.