diff options
author | 6543 <6543@obermui.de> | 2020-02-24 23:50:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-24 16:50:32 -0600 |
commit | b65e954f7342417baa15d7fa7a1a5744aababd7d (patch) | |
tree | d4515e7af41f86927580edc46edef2740b8f518b /models/token.go | |
parent | 0eeee9c72165442bb9855e662ecb7a810a9266c8 (diff) | |
download | gitea-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.go | 2 |
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) |