Joomla 1.6/1.7 Access Control Lists (ACL)

  • 13,757 views
Uploaded on

Joomla's ACL changed radically between version 1.5 and more recent versions. This talk highlights the rules for thinking about ACL. The talk was followed by a live demo of the ACL system.

Joomla's ACL changed radically between version 1.5 and more recent versions. This talk highlights the rules for thinking about ACL. The talk was followed by a live demo of the ACL system.

More in: Technology , Business
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to like this
No Downloads

Views

Total Views
13,757
On Slideshare
0
From Embeds
0
Number of Embeds
4

Actions

Shares
Downloads
93
Comments
2
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide
  • This is the easiest one to understand — that's you, or someone else visiting the website. A user does not have to have an account to be considered a user of the website. That user would still be considered a public user. Individual users may be assigned to one or several user groups. You cannot assign core permissions directly to users; these are assigned to the user group.
  • Core permissions are assigned to the user group, not to individual users. (If you want specific core permissions for a single user, you would need to create a user group for that single user.)
  • Core permissions include: Site login: the ability to log into the front of the website. Admin login: the ability to log into the back end of the website. Super Admin: access over the whole site, regardless of any other permissions settings Access Component: ability to change anything on the back end, except Global Configuration Create: ability to create new content Delete: ability to delete (trash) content Edit: ability to edit existing content which is not necessarily your own Edit state: ability to change state between published, unpublished, trash Edit own: ability to edit the state (published, unpublished, trash) of any content the user group owns
  • A user group is a group of users who share the same permissions. Using the Joomla 1.5 user groups as an example, the publisher user group has the right to log into the front of the website, create new articles, edit any articles on the site, and publish or unpublish articles. Anyone in the publisher user group has the same permissions to do these same things. Unlike Joomla 1.5, however, a user may be assigned to multiple user groups. A user may be in the publisher user group as well as the administrator user group, for example. You can create your own user groups and assign them their own set of core permissions. Core permissions are inherited between user groups. A user group might be created for two different reasons. One would be to view content on the front end of the website. The other would be to specify what content can be created, edited, deleted, published or unpublished, or managed by that user group. By visiting the website, a site visitor is considered a user belonging to the public user group. The public user group and the registered user group may not be deleted, but all other user groups may be deleted. (However, I'd recommend you keep them, because they give you a good model of how permissions inheritance works.)
  • Access levels refer to who can see what content on the front end of the website. Essentially, this amounts to read permissions on the front end of the website. Historically, there have been three access levels: public (which anyone can see), registered (you must be logged in to see the content), or special (you must be a logged in author or higher level user group to see the content). These access levels are still present in 1.6 as default settings, but you can also create your own access levels. Access levels do not inherit their permissions. If you have an article, and you set it to be viewable by publishers only, even super administrators cannot view that article. You must be assigned to the publisher user group in order to view this article. (However, as a super administrator, you are able to edit this article on the back end.)

Transcript

  • 1. Joomla 1.7 Access Control Lists (ACL) Jen Kramer 4Web, Inc. Joomla Day Chicago August 2011
  • 2. Agenda
    • Understanding ACL terms
    • Understanding ACL hierarchy
    • ACL example configurations
  • 3. What is ACL?
    • Most people think of “who sees what”
    • It’s also who creates, edits, and configures what
    • Joomla separates viewing from all other permissions in a separate system (access levels)
  • 4. Just because you can…
    • ACL is NOT for newbies
    • ACL gets very complicated very quickly
    • There is nothing wrong with using the default settings, which approximate Joomla 1.5 ACL
  • 5. If the implementation is hard to explain, it's a bad idea. The Zen of Python
  • 6. Joomla 1.5 ACL: Review
    • 7 user groups , plus public. Groups cannot be expanded
    • Any user in any group can do anything the group can do
    • Groups are hierarchical: inherit permissions
    • 3 access levels: Public, Registered, Special
  • 7. Joomla 1.7 ACL
    • 7 user groups by default, add as many more as you wish
    • Any user in any group can do anything the group can do
    • Groups are not hierarchical: they inherit permissions, but they can be set with whatever permissions you want
    • 3 access levels by default, can add more. Permissions NOT inherited
  • 8.  
  • 9. Users (Users – User Manager – Add New User)
  • 10.  
  • 11. Core Permissions (Site – Global Configuration – Permissions)
  • 12.  
  • 13. User Groups (Users – Groups – Add New Group)
    • User groups inherit core permissions from parents
    • If you want to keep it (more) simple, keep parent as public and add required permissions
    • “ Flat is better than nested.” ( Zen of Python )
  • 14.  
  • 15. Access Levels (Users – Access Levels – Add New Access Level)
    • Access levels do NOT inherit permissions from other groups
    • Possible for SU to not see certain content on front end
  • 16. Now you know the terms…
    • On to the planning!
  • 17. Planning for ACL
    • Describe the problem you are trying to solve. Example…
      • The general public can visit that site and see most content. However, there is content behind the scenes for students and teachers.
      • A teacher can see content specifically for teachers, all student content, and the public content.
      • Students can only see student content (not teacher content) and the public content.
  • 18. Planning for ACL
    • Is your problem a reading problem? Or does it have to do with creating/editing/deleting content? Or both?
      • If it’s a reading problem, you need to think about access levels.
      • If it’s an editing problem, you might not need to think about access levels at all.
  • 19. Planning for ACL
    • Think about maintenance.
      • It’s easier to allow all content within a category be editable or readable by a group, rather than setting individual articles.
  • 20. Planning for ACL
    • Think about inheritance.
      • Do users belong to more than one user group? If so, how does that affect their permission to do things?
        • User group permissions ARE inherited
        • Access levels are NOT inherited
  • 21. Joomla 1.7 ACL demo
  • 22. Questions?
    • Jen Kramer
    • 4Web, Inc.
    • www.4webinc.com
    • www.joomla4web.com
    • [email_address]
    • Twitter: jen4web