feat: update casbin to 2.77.2 (#2345)

* fix: make redirect_uri really optional in logout route

* feat: update casbin to 2.77.2
This commit is contained in:
Dmitry Buryanov
2023-09-20 18:37:55 +03:00
committed by GitHub
parent b6d6aa9d04
commit 2f31e35315
3 changed files with 7 additions and 2 deletions

View File

@ -87,7 +87,7 @@ func (e *UserGroupEnforcer) GetAllUsersByGroup(group string) ([]string, error) {
users, err := e.enforcer.GetUsersForRole(GetGroupWithPrefix(group))
if err != nil {
if err == errors.ERR_NAME_NOT_FOUND {
if err == errors.ErrNameNotFound {
return []string{}, nil
}
return nil, err