don't sync groups if no groupDn was given during setup
authorPhilipp Schüle <p.schuele@metaways.de>
Fri, 13 Jun 2014 20:07:53 +0000 (22:07 +0200)
committerPhilipp Schüle <p.schuele@metaways.de>
Wed, 16 Jul 2014 11:00:05 +0000 (13:00 +0200)
Change-Id: Id49199d6d06ee20c520aca1dce93b7255743945b
Reviewed-on: http://gerrit.tine20.com/customers/769
Tested-by: Jenkins CI (http://ci.tine20.com/)
Reviewed-by: Lars Kneschke <l.kneschke@metaways.de>
Reviewed-by: Philipp Schüle <p.schuele@metaways.de>
tine20/Tinebase/Setup/Initialize.php

index e452eab..8540847 100644 (file)
@@ -193,10 +193,12 @@ class Tinebase_Setup_Initialize extends Setup_Initialize
     
     /**
      * import groups(ldap)/create initial groups(sql)
+     * 
+     * @todo allow to configure if groups should be synced?
      */
     protected function _setupGroups()
     {
-        if (Tinebase_User::getInstance() instanceof Tinebase_User_Interface_SyncAble) {
+        if (Tinebase_Group::getInstance() instanceof Tinebase_Group_Interface_SyncAble && ! Tinebase_Group::getInstance()->isDisabledBackend()) {
             Tinebase_Group::syncGroups();
         } else {
             Tinebase_Group::createInitialGroups();