Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-12059

Support hook_civicrm_permissions on Joomla

    Details

    • 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

            Activity

              People

              • Assignee:
                lcdweb Brian Shaughnessy
                Reporter:
                timotten Tim Otten
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: