Code

Added dependencies to posixAccount
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 27 May 2010 10:14:03 +0000 (10:14 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 27 May 2010 10:14:03 +0000 (10:14 +0000)
-Disable samba, netatalk, posix and envrionment while the object class posixAccount is missing

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18769 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/personal/posix/class_posixAccount.inc

index 4d8241c2e6377a69092e8245c4a67ab0614e5cd9..2519d6ea1c36e14c9574361bdc1896a119e025e6 100644 (file)
@@ -1295,6 +1295,10 @@ class posixAccount extends plugin
           "plSection"         => array("personal" => _("My account")),
           "plCategory"        => array("users"),
           "plOptions"         => array(),
+          "plRequirements"=> array(
+              'ldapSchema' => array('posixAccount' => ''),
+              'onFailureDisablePlugin' => array(get_class(), 'sambaAccount','netatalk','environment')
+              ),
 
           "plProvidedAcls"  => array(