summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f755d41)
raw | patch | inline | side by side (parent: f755d41)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 20 Sep 2006 04:16:31 +0000 (04:16 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 20 Sep 2006 04:16:31 +0000 (04:16 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4732 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_servGeneric.inc | patch | blob | history |
diff --git a/plugins/admin/systems/class_servGeneric.inc b/plugins/admin/systems/class_servGeneric.inc
index 34397aea6ff261d0f03dc6b5dbac357620df146e..beb041887b4a97d1abf407145784a195dabc16d3 100644 (file)
}
/* Check for action */
- if (isset($_POST['action'])){
+ if (isset($_POST['action']) && $this->acvl_is_writeable("FAIstate")){
$cmd= search_config($this->config->data['TABS'], "workgeneric", "ACTIONCMD");
if ($cmd == ""){
print_red(_("No ACTIONCMD definition found in your gosa.conf"));
/* Base select dialog */
$once = true;
foreach($_POST as $name => $value){
- if(preg_match("/^chooseBase/",$name) && $once){
+ if(preg_match("/^chooseBase/",$name) && $once && $this->acl_is_moveable()){
$once = false;
- $this->dialog = new baseSelectDialog($this->config,$this);
+ $this->dialog = new baseSelectDialog($this->config,$this,$this->get_allowed_bases());
$this->dialog->setCurrentBase($this->base);
}
}
}
$smarty->assign("baseACL", $baseACL);
- $smarty->assign("bases", $this->config->idepartments);
+ $smarty->assign("bases", $this->get_allowed_bases());
/* Assign attributes */
foreach ($this->attributes as $attr){
function remove_from_parent()
{
+ /* Cancel if there's nothing to do here */
+ if ((!$this->initially_was_account) || (!$this->acl_is_removeable())){
+ return;
+ }
+
$this->netConfigDNS->remove_from_parent();
$ldap= $this->config->get_ldap_link();
$ldap->rmdir($this->dn);