aboutsummaryrefslogtreecommitdiffstats
path: root/models/token.go
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-02-24 23:50:32 +0100
committerGitHub <noreply@github.com>2020-02-24 16:50:32 -0600
commitb65e954f7342417baa15d7fa7a1a5744aababd7d (patch)
treed4515e7af41f86927580edc46edef2740b8f518b /models/token.go
parent0eeee9c72165442bb9855e662ecb7a810a9266c8 (diff)
downloadgitea-b65e954f7342417baa15d7fa7a1a5744aababd7d.tar.gz
gitea-b65e954f7342417baa15d7fa7a1a5744aababd7d.zip
FIX Pagination of ListAccessTokens and GetIssueWatchers (#10449)
* fix a pagination bug * fix pagination of ListAccessTokens
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)