Details
- 
    Type:Improvement 
- 
    Status: Done/Fixed
- 
    Priority:Minor 
- 
    Resolution: Fixed/Completed
- 
    Affects Version/s: 4.3.0, 4.4.0
- 
    Fix Version/s: 4.7.21
- 
    Component/s: CiviHR, Extension System, Joomla Integration
- 
    Labels:
- 
        Versioning Impact:Patch (backwards-compatible bug fixes)
- 
        Documentation Required?:None
- 
        Funding Source:Contributed Code
Description
CRM-11925 introduced hook_civicrm_permissions to allow extension-modules to define permissions.
If this feature is by an active extension on Joomla, then we currently display an alert: "Some modules define permissions, but the CMS cannot store them".
Two functions need to be added to CRM_Core_Permission_Joomla: isModulePermissionSupported() and upgradePermissions(). The latter receives a list of all affirmatively defined permissions (across all CiviCRM extensions, including core) and performs any necessary steps to register new permissions and unregister old permissions. (Note: In D6 and D7, this is very minimal because we integrate via hook_permissions; however, a bit more work may be required for other platforms.)
There are more comments about this topic at http://forum.civicrm.org/index.php?topic=27647  and on CRM-11925.
Attachments
Issue Links
- is duplicated by
- 
                    VOL-46 Install permission error on joomla 3.3.0/civi 4.4.5 - see image -         
- Done/Fixed
 
-         
- is supplemented by
- 
                    VOL-71 Handle Joomla's permissions issues gracefully -         
- Done/Fixed
 
-         
- supplements
- 
                    CRM-11925 Support dynamic permission definitions in CiviCRM module extensions (a la Drupal's hook_perm) -         
- Done/Fixed
 
-         
- links to