aboutsummaryrefslogtreecommitdiffstats
path: root/models/token.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/token.go')
-rw-r--r--models/token.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/token.go b/models/token.go
index ce3218d8d6..7ad9d41676 100644
--- a/models/token.go
+++ b/models/token.go
@@ -83,7 +83,7 @@ func ListAccessTokens(uid int64, listOptions ListOptions) ([]*AccessToken, error
Where("uid=?", uid).
Desc("id")
- if listOptions.Page == 0 {
+ if listOptions.Page != 0 {
sess = listOptions.setSessionPagination(sess)
tokens := make([]*AccessToken, 0, listOptions.PageSize)