Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrForbidden = clevergo.NewError(http.StatusForbidden, errors.New("you are not allowed to access this page")) )
Functions ¶
This section is empty.
Types ¶
type Authorization ¶
func New ¶
func New(enforcer *casbin.Enforcer, userManager *users.Manager) *Authorization
func (*Authorization) Middleware ¶
func (a *Authorization) Middleware() clevergo.MiddlewareFunc
Click to show internal directories.
Click to hide internal directories.