summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: abb6e78)
raw | patch | inline | side by side (parent: abb6e78)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 6 Nov 2008 12:50:47 +0000 (12:50 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 6 Nov 2008 12:50:47 +0000 (12:50 +0000) |
-Do not check for dummy entries like ('cn=dummy,ou..'), this doesn't work with user filter settings.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12939 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12939 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/gosa-core/plugins/admin/departments/class_divListDepartment.inc b/gosa-core/plugins/admin/departments/class_divListDepartment.inc
index a959b972ab1bf36051dd9a31cd753fc33271cba7..bcbaae300010dc0db865343a274854be95153e11 100644 (file)
*/
$types = $this->parent->get_support_departments();
foreach($types as $type){
- if(preg_match("/c/",$ui->get_permissions("ou=dummy,".$this->selectedBase ,"department/".$type['ACL']))){
+ if(preg_match("/c/",$ui->get_permissions($this->selectedBase ,"department/".$type['ACL']))){
$s.= "...|<input class='center' type='image' src='".$type['IMG']."' alt='".$type['ATTR']."'>".
" ".$type['TITLE']." (".$type['ATTR'].")|dep_new_".$type['ATTR']."|\n";
}
diff --git a/gosa-core/plugins/admin/users/class_userManagement.inc b/gosa-core/plugins/admin/users/class_userManagement.inc
index 2fa0cfc627e1bc93e04158208fbb52e0a2c1060c..a8ea272ec46c0dc83f8ad40a58a5c364ca2f874a 100644 (file)
foreach ($this->config->departments as $key => $value){
/* Get acls from different ou's */
- $acl = $this->ui->get_permissions("cn=dummy,".get_people_ou().$value,"users/user") ;
+ $acl = $this->ui->get_permissions($value,"users/user") ;
/* If creation of a new user is allowed, append this template */
if (preg_match("/c/",$acl)){
/* Create new usertab object */
$this->usertab= new usertabs($this->config,$this->config->data['TABS']['USERTABS'], $this->dn);
$this->usertab->by_object['user']->base= $this->DivListUsers->selectedBase;
- $this->usertab->set_acl_base('dummy,'.$this->DivListUsers->selectedBase);
+ $this->usertab->set_acl_base($this->DivListUsers->selectedBase);
/* Take care about templates */
if ($s_action=="new_tpl"){
diff --git a/gosa-core/plugins/personal/generic/class_user.inc b/gosa-core/plugins/personal/generic/class_user.inc
index 8f658bef4989bf07a2fb35a6a12b9958634bb9d2..ec47df24bc88f569085145d5e6addfac898eefa1 100644 (file)
function saveCopyDialog()
{
/* Set_acl_base */
- $this->set_acl_base("cn=dummy,".get_people_ou().$this->base);
+ $this->set_acl_base($this->base);
if((isset($_FILES['picture_file']['tmp_name'])) && ($_FILES['picture_file']['size'] > 0)){
$this->set_picture($_FILES['picture_file']['tmp_name']);
diff --git a/gosa-plugins/fai/admin/fai/class_faiTemplate.inc b/gosa-plugins/fai/admin/fai/class_faiTemplate.inc
index b25f018c044cd7b607d49b5a59c1a707c762ac23..0c2dca46dd7cb6853f95c1d43ebb397c85784abf 100644 (file)
/* Add new sub object */
if(isset($_POST['AddSubObject']) && !preg_match("/freeze/",$this->FAIstate)){
- $acl_dn = "cn=dummy,".$this->acl_base_for_current_object($this->dn);
+ $acl_dn = $this->acl_base_for_current_object($this->dn);
$acl = $this->ui->get_permissions($acl_dn,"fai/faiTemplateEntry");
if(preg_match("/c/",$acl)){
diff --git a/gosa-plugins/goto/admin/devices/class_divListDevices.inc b/gosa-plugins/goto/admin/devices/class_divListDevices.inc
index d81ebd460a5105ecbd8076f2dd1a62dcba24ec68..c4c11b25a28275fb88e770c132e5b2340d8333c0 100644 (file)
/* Get acls */
$ui = get_userinfo();
- $acl = $ui->get_permissions("cn=dummy,".get_ou('deviceRDN').$this->selectedBase,"devices/deviceGeneric");
+ $acl = $ui->get_permissions($this->selectedBase,"devices/deviceGeneric");
$acl_all = $ui->has_complete_category_acls($this->selectedBase,"devices") ;