We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce8e5e4 commit bce0e62Copy full SHA for bce0e62
routers/web/user/setting/applications.go
@@ -116,7 +116,7 @@ func loadApplicationsData(ctx *context.Context) {
116
// Handle specific ordered token categories for admin or non-admin users
117
tokenCategoryNames := auth_model.GetAccessTokenCategories()
118
if !ctx.Doer.IsAdmin {
119
- util.SliceRemoveAll(tokenCategoryNames, "admin")
+ tokenCategoryNames = util.SliceRemoveAll(tokenCategoryNames, "admin")
120
}
121
ctx.Data["TokenCategories"] = tokenCategoryNames
122
0 commit comments