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

civicrm_og_sync in recent version doesn't properly sync og admins to civi acl group

    Details

    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None

      Description

      First some info about my setup:

      Drupal 7.34
      OG 7.x-2.7
      CiviCRM 4.5.6 (was 4.5.5 on install)

      I'm relatively new to CiviCRM so I first thought, that would be a new feature and posted it in the forum:
      http://forum.civicrm.org/index.php/topic,35711.0.html

      It turned out that syncing og admins to the corresponding ACL group was working in older releases but seems to be broken since civicrm_og_sync supports og-7.x-2.x.

      The problem in short:
      Only og group node author(s) are added to the CiviCRM ACL group.
      Og admins that are not group node author never get added.

      My suggestion ist to use og_user_access_entity() for the check, whether a member is admin or not.
      I can provide more code snippets if necessary.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              indigocivi Indigocivi
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: