User tests: Successful: Unsuccessful:
Fix for issue: #5685 (see that issue for testing instruction)
The Article Pagination "Prev" & "Next" used the current article's Access Level (with "AND a.access = ' . (int) $row->access)") to navigate among articles within the same Category. That caused problems with Articles from the same Category that had different Access Levels.
This fix checks the User's authorized Access Levels (with "AND a.access IN ('.implode(",", JAccess::getAuthorisedViewLevels($user->id)).') ')" instead.
Note: using "IN" in SQL queries might be slower than "equal". I have not tested this fix on categories with huge numbers of articles!
Labels |
Added:
?
|
Rel_Number | ⇒ | 5685 | |
Relation Type | ⇒ | Pull Request for |
Ah, I noticed the Travis error but did not know the cause.
Thanks Robert!
Thank you @pe7er, this PR fixes the problem.
I will merge the PR and close it!
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-01-13 14:15:03 |
Great! Thank you all for testing!
Milestone |
Added: |
You forget to make spaces before and after "." could you fix that to make travis happy, Thanks :-)