feat: fix bug that the default permission prevents admin to login in (#907)

* fix:The certs page is displayed incorrectly

* Translations for each language are added

* Replace the variables certificat with Certificat with certificate and Certificate

* Replace the variables certificat with Certificat with certificate and Certificate

* Variable names are more accurate

* Variable names are more accurate

* Modify the variable name

* fix: Default action prevents admin to login in
This commit is contained in:
SLingyu
2022-07-24 23:36:55 +08:00
committed by GitHub
parent 8e98fc5a9f
commit 4e3eedf246
2 changed files with 24 additions and 1 deletions

View File

@ -236,7 +236,7 @@ func CheckAccessPermission(userId string, application *Application) (bool, error
allowed := true
var err error
for _, permission := range permissions {
if !permission.IsEnabled {
if !permission.IsEnabled || len(permission.Users) == 0 {
continue
}