Skip to content

Commit bce0e62

Browse files
committed
fix token names
1 parent ce8e5e4 commit bce0e62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/web/user/setting/applications.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func loadApplicationsData(ctx *context.Context) {
116116
// Handle specific ordered token categories for admin or non-admin users
117117
tokenCategoryNames := auth_model.GetAccessTokenCategories()
118118
if !ctx.Doer.IsAdmin {
119-
util.SliceRemoveAll(tokenCategoryNames, "admin")
119+
tokenCategoryNames = util.SliceRemoveAll(tokenCategoryNames, "admin")
120120
}
121121
ctx.Data["TokenCategories"] = tokenCategoryNames
122122

0 commit comments

Comments
 (0)