summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 18779cb)
raw | patch | inline | side by side (parent: 18779cb)
author | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 19 Feb 2009 08:45:48 +0000 (08:45 +0000) | ||
committer | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 19 Feb 2009 08:45:48 +0000 (08:45 +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/branches/2.6-lhm@13431 594d385d-05f5-0310-b6e9-bd551577e9d8
with user filter settings.
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13431 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 5104c9ee487ad6cb7a32ea803340d18e732d49d1..49732cc95495895bb4b41cafccfb0a89e6227d16 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 bd26203f9d195d6b7c7dc88eace62a36484640f3..a115f3691fb65c8321bc628939ca838c0de29423 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 577744197c17e8c6726189b5de06c04c256b45e8..b2678308997989d7b09b2875eaeaa7ccddc36a37 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/goto/admin/devices/class_divListDevices.inc b/gosa-plugins/goto/admin/devices/class_divListDevices.inc
index c5adfd07ad762916a1a82b1ade7a020cb0a2db9c..366b5e1b98a1db181fa9a87ae92379f7b6e373b5 100644 (file)
/* Get acls */
$ui = get_userinfo();
- $acl = $ui->get_permissions("cn=dummy,".get_ou('deviceou').$this->selectedBase,"devices/deviceGeneric");
+ $acl = $ui->get_permissions($this->selectedBase,"devices/deviceGeneric");
$acl_all = $ui->has_complete_category_acls($this->selectedBase,"devices") ;