From: hickert Date: Wed, 24 Mar 2010 14:38:00 +0000 (+0000) Subject: Updated hotplug device ACL checks X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d6b5f92bd5be4cbafc5ad9646a3b6dee63b6d4c0;p=gosa.git Updated hotplug device ACL checks git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17127 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/personal/environment/class_environment.inc b/gosa-plugins/goto/personal/environment/class_environment.inc index f537c61ff..c27902818 100644 --- a/gosa-plugins/goto/personal/environment/class_environment.inc +++ b/gosa-plugins/goto/personal/environment/class_environment.inc @@ -807,8 +807,8 @@ class environment extends plugin */ /* We have to delete the selected hotplug from the list*/ - if((isset($_POST['gotoHotplugDeviceDel']))&&(isset($_POST['gotoHotplugDevice_post'])) && $this->acl_is_writeable("gotoHotplugDevice")){ - if($this->acl_is_writeable("gotoHotplugDevice")){ + if((isset($_POST['gotoHotplugDeviceDel']))&&(isset($_POST['gotoHotplugDevice_post'])) && $this->acl_is_writeable("gotoHotplugDeviceDN")){ + if($this->acl_is_writeable("gotoHotplugDeviceDN")){ foreach($_POST['gotoHotplugDevice_post'] as $name){ unset($this->gotoHotplugDevices[$name]); } @@ -816,7 +816,7 @@ class environment extends plugin } /* There are already defined hotplugs from other users we could use */ - if(isset($_POST['gotoHotplugDeviceUse']) && $this->acl_is_writeable("gotoHotplugDevice")){ + if(isset($_POST['gotoHotplugDeviceUse']) && $this->acl_is_writeable("gotoHotplugDeviceDN")){ $tmp =array(); foreach($this->gotoHotplugDevices as $plugs){ $tmp[] = $plugs['name'];