Skip to content

Commit

Permalink
fix(admin): info table display error
Browse files Browse the repository at this point in the history
  • Loading branch information
cg33 committed Sep 15, 2020
1 parent 4dac781 commit eaae4a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions modules/language/en.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ var en = LangSet{
"updatedat": "updatedAt",
"path": "path",
"new": "New",
"filter": "Filter",
"action": "Action",
"toggle dropdown": "Toggle Dropdown",
"delete": "Delete",
Expand Down
8 changes: 4 additions & 4 deletions plugins/admin/models/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,16 +122,16 @@ func (t UserModel) CheckPermissionByUrlMethod(path, method string, formParams ur
return true
}

if path == "" {
return false
}

logoutCheck, _ := regexp.Compile(config.Url("/logout") + "(.*?)")

if logoutCheck.MatchString(path) {
return true
}

if path == "" {
return false
}

if path != "/" && path[len(path)-1] == '/' {
path = path[:len(path)-1]
}
Expand Down

0 comments on commit eaae4a2

Please sign in to comment.