Skip to content

count with tags ignores view level and count of every published item is displayed #23582

@kofaysi

Description

@kofaysi

Steps to reproduce the issue

Log in to the backend.

For articles and contacts: In a category of Content or Contacts, create an item with a restricted view level (Administrator, editor, not user). Or change an existing one.

For tags: Change the view level for an Article with a particular chosen tag. Create and publish Tags - Popular module, if not published yet.

Log in to the frontend as a user.

For articles and contacts: List the categories of the articles or contacts and observe the number of items.

For tags: Observe the similar in the module for Tags - Popular.

Expected result

For articles and contacts: In that particular Category or for that particular tag, the number of the items shall be restricted only to the items, which the user can see -- the access level of the user allows that.

Actual result

For articles and contacts: When opening the Category, the number is at least one item less -- the item for which the view rights has been previously changed.

For tags: The count of items displayed next to the tag differs from the number of items under that tags -- after opening the tag.

System information (as much as possible)

Joomla 3.9.2

Additional comments

https://forum.joomla.org/viewtopic.php?f=708&t=922805

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions