Skip to content

Commit 7a5e483

Browse files
committed
Missing negation added
Fixes: 2bde83b Author-Change-Id: IB#1115254
1 parent 2bde83b commit 7a5e483

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
@@ -95,7 +95,7 @@ func DeleteApplication(ctx *context.Context) {
9595
}
9696

9797
func loadApplicationsData(ctx *context.Context) {
98-
if setting.DisableAccessTokens {
98+
if !setting.DisableAccessTokens {
9999
tokens, err := models.ListAccessTokens(models.ListAccessTokensOptions{UserID: ctx.User.ID})
100100
if err != nil {
101101
ctx.ServerError("ListAccessTokens", err)

0 commit comments

Comments
 (0)