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 ¶
func HasPermOld(userID int64, perms []string, permName Permission) bool
HasPerm verifies that a permission exists in a userProfile's permissions
Types ¶
type IUserContainer ¶
Click to show internal directories.
Click to hide internal directories.