Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter davidffff0101

    (@davidffff0101)

    Thanks, then I suppose I will use groups as Joomla access levels to define which content can be viewed in categories and posts.

    I would like to ask a few questions about how permissions are applied before close the thread:

    1. If I have permissions set on a specific category and those permissions restrict a group from viewing the posts within it, but a specific post inside that category explicitly grants access to view it, will users in that group be able to access that post? In other words, do post-specific permissions override taxonomy/category permissions?
    2. Additionally, related to the previous question: if a user is denied access to view a category because of their group permissions, but that same user is explicitly granted access at the user level for the category, does the user-specific permission take precedence over the role/group permission?
    3. If a user belongs to two groups and one group restricts access to view posts in a category while the other grants access, which rule takes precedence?
    4. Is there any way to make it so that, for example, a user with the Editor role — who can generally edit/delete/create posts — can only edit/delete posts for a specific category or post? In other words, can capabilities be restricted depending on the group?
    Thread Starter davidffff0101

    (@davidffff0101)

    Sure,

    Right now I´m migrating a project from Joomla to WordPress. Im trying to figure out how to replicate/simulate the Joomla System for view content.

    Joomla uses a system that is based on access levels ( like atomic permissions to view content), then you have groups that contains some access levels, in fact, groups are hierarchical and the access levels of a parent group are inherited by its child groups. A user can belong to multiple groups (and therefore ultimately have multiple levels of access).

    To access a resource (in joomla), the user typically goes through a menu item (which has an access level). In WordPress terms, this would be a navigation item; if the user has the access level, can see that menu item (the link). That menu item may then lead to a article (similar to a WordPress post) that belongs to a category (only one category). If the user does not have the access level required by the category, access to the article is denied. Finally, if they do have access, they reach the post itself, which also has its own access level; if the user has that level too, the content is ultimately displayed.

    As you can see you can fail the access to a resource for three reasons: you can´t see the link or you don´t have access to category of article or you can´t access to article itself.

    My idea was to use this mapping:

    Plugin groups == Joomla groups
    Access levels == additional roles (with view/edit permissions) granted by a plugin group (in extra role section)

    In this way, I tried to replicate the previous system, but I can see that I’ve confused the concepts. I´m stuck with this for days.

    Thanks for your time!

Viewing 2 replies - 1 through 2 (of 2 total)