Hi Jean,
Thanks. I have had a look at the issue. It seems that CBSubs is storing their permissions in the assets table under the name "com_cbsubs". Technically this is not correct, as the component is "com_comprofiler" (see the backend url /index.php?option=com_comprofiler). Also in the #__extensions table of your database, no component under the element "com_cbsubs" can be found.
So while it is nice that CBSubs is using the Joomla ACL, they implemented it incorrectly. As it is part of community builder a more proper name would have been "com_comprofiler.cbsubs" as asset name. As that refers to a "sub" item of com_comprofiler.
PWT ACL checks of asset entries are left in the database after removing extensions. Because com_cbsubs is missing form the extensions table PWT ACL thinks the extension is no longer there and removes the entry. This is why permissions are removed after running the diagnostics.
As mentioned before I am not really eager to add specific 3rd party code to fix incorrect ACL implementations of extensions. Maybe you can provide this feedback to CBSubs so they can fix their Joomla ACL implementation?
Sander
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Hi Jean,
Thanks for getting back to me. I am very hesitate to built in features (also settings) to fix others mistakes in implementing the Joomla ACL system.
I disagree it is a good feature to add as Kyle mentioned. It is allowed to use custom assets and names, and indeed others are doing that, but within their own "namespace". So they don't add custom assets name with a different component name that simply not exists.
I haven't received any similar reports over the past years in which this setting would be useful. So if I add this setting it is for this specific case only and I have to spend even more time to fix CBSubs mistakes.
I will think of adding the option, but from my point of view the ones that needs to fix this are CBSubs, not us. They should think of a proper migration and fallback for this permission. Renaming the asset is an easy migration, and with their installation/update process this is not an issue at at. A simple check on loading CBSubs in the backend could be added as well that updates the asset if not already done.
Sander
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.