Documentation ¶
Index ¶
Constants ¶
View Source
const ( SuperUserID = int64(1) RequestPathUserIDArgName = "userID" AsOwnerSuffix = "AsOwner" )
Variables ¶
This section is empty.
Functions ¶
func HasPerm ¶
func HasPerm(req *request.Request, user types.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 ¶
Click to show internal directories.
Click to hide internal directories.