Pagination issue for user role Author
-
- Jr. Bludit
- Posts: 6
- Joined: Fri Sep 15, 2023 1:24 pm
- Has thanked: 2 times
- Been thanked: 2 times
Hi there,
I have a Bludit installation on a domain, with two users. One administrator and one Author.
The administrator has 160 posts published, and the other user with author role has published 11 posts.
Pagination in admin area (contents) is fine when I'm logged in with the administrator role. There are 8 pages with 20 posts in each.
But when logging with the author role, pagination has still 8 pages! the first page is empty, the second page has 1 post, the third page has 4 posts and so on... . And the link on "Last" shows page number 8!
This happens only for users with the role Author. If I change the role to Editor, which has access to all posts, pagination has no issue.
It seems Bludit hides the unrelated posts to the author, but does not recalculate the number of pages for that specific author. Is it a bug or a feature?
bludit: 3.15.0
php: 7.3
I have a Bludit installation on a domain, with two users. One administrator and one Author.
The administrator has 160 posts published, and the other user with author role has published 11 posts.
Pagination in admin area (contents) is fine when I'm logged in with the administrator role. There are 8 pages with 20 posts in each.
But when logging with the author role, pagination has still 8 pages! the first page is empty, the second page has 1 post, the third page has 4 posts and so on... . And the link on "Last" shows page number 8!
This happens only for users with the role Author. If I change the role to Editor, which has access to all posts, pagination has no issue.
It seems Bludit hides the unrelated posts to the author, but does not recalculate the number of pages for that specific author. Is it a bug or a feature?
bludit: 3.15.0
php: 7.3
Last edited by medicamin on Thu Sep 21, 2023 4:48 pm, edited 1 time in total.
-
- Jr. Bludit
- Posts: 6
- Joined: Fri Sep 15, 2023 1:24 pm
- Has thanked: 2 times
- Been thanked: 2 times
The only workaround I found, is to set the items-per-page in variables.php to a high number, so as pagination in the admin/content get bypassed some how:
But it's not a solution.
Code: Select all
define('ITEMS_PER_PAGE_ADMIN', 1000);