Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdminRequired ¶
func AdminRequired(f func(c *gin.Context)) gin.HandlerFunc
AdminRequired run function when user logged in and user has an admin role.
func AuthRequired ¶
func AuthRequired(f func(c *gin.Context)) gin.HandlerFunc
AuthRequired run function when user logged in.
func CurrentOrAdmin ¶
CurrentOrAdmin check that user has admin permission or user is the current user.
func CurrentUserIdentical ¶
CurrentUserIdentical check that userId is same as current user's Id.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.