Since the beginning of Mambo "I want/need/demand ACL" (access control lists) must be one of the most common threads in the forums. But what do I/you mean by ACL and why is it just so dam hard to implement. (I assume it must be hard or it would have been done by now in the core)
Before you can write an ACL system for Joomla you need to define what it is aiming to achieve, and this is where the problems start. I've sat at a computer with Andrew Eddie in his house whilst he explained his "vision" for ACL, I've evaluated most, if not all, third party solutions and I've read long discussion papers on the subject and yet I'm still not convinced that:-
- what a developer means by ACL is what a user means by ACL
- a true ACL system will ever be understood by the regular site builder
ACL can probably be broken down into two separate parts:-
- What can I see?
- What can I do?
And then you need to address some common misconceptions:-
- all backend users have the same permissions
- I need ACL to show different content to registered and non-registetred users
- if ACL is added to the core of Joomla then all my third party extensions will automaticaly have ACL
- Joomla has no ACL
- Joomla does have ACL.
It is a rudimentary system that is heirarchical with each subsequent level of users inheriting the permissions of all those beneath it.
- Managers only have access to the content menu and no other component.
So they need to have administrator level if they are to use any third party extensions or even core components such as weblinks and contacts.
- "What can I see?" is the only reason for ACL on the majority of sites.
Site owners want to restrict viewing access to content areas based on a user group, they are not bothered about creating restricted access for creation of content as they have far fewer content creators and they are all trusted.
I would love to see a fully fledged ACL system in Joomla that would satisfy both the needs of the site that wants to restrict the viewing of content and the enterprise site that allows restrictions to be placed on every part of the site, both content creation and content viewing.
However my experience tells me that this is just isnt possible without some major compromises as a true ACL system is just too complex a beast. Joomla, and Mambo before it, owes its success in part to the ability for anyone with reasonable keyboard skills to create a web site. If they are faced with a complex ACL system with its ARO, AXO etc they will drop Joomla like a hot potato. They wont even realise its not necessasary to implement as they dont understand it at all. (I count myself in the crowd of users who dont understand ARO, AXO etc and I've had personal demonstrations from the best)
So what is the solution, or is there even a solution at all?
Clearly the status quo is no longer acceptable and yet as I've suggested the inclusion of full ACL would not work either. Instead I'd like to propose the adoption of a long forgotten idea that dates from the creation of Joomla, Officialy supported extensions.
... we are now committing to release and/or support certain popular components as "Officially Supported Components", the first of which will be JoomFish. This means some of the features the community has been asking for will be supported by Joomla!...
The principal behind these "officialy supported extensions" was to allow a developer or group of developers to work on an extension that whilst important to a significant number of users was not deemed to be essential for all users. In addition the "official" status would mean that any API hooks or calls that might be needed in the core of Joomla would be implemented.