diff --git a/plugins/admin/users/class_userManagement.inc b/plugins/admin/users/class_userManagement.inc
index ce9b646ccc3fa79c16063069ae9fe996f9586fff..c0042797a60a184c1b8ec58f9e99d9cff82d85f2 100644 (file)
$dn= $this->list[trim($s_entry)]['dn'];
/* Check acl */
- $acl = $this->ui->get_permissions($dn,"users/user");
- if(preg_match("/(c.*w|w.*c)/",$acl)){
+ $acl_all = $ui->has_complete_category_acls($this->selectedBase,"users") ;
+ if(preg_match("/(c.*w|w.*c)/",$acl_all)){
$obj = new usertabs($this->config, $this->config->data['TABS']['USERTABS'], $dn);
$obj->set_acl_base($dn);
$objNew = new usertabs($this->config, $this->config->data['TABS']['USERTABS'], "new");
$dn= $this->list[trim($s_entry)]['dn'];
/* Check acl */
- $acl = $this->ui->get_permissions($dn,"users/user");
- if(preg_match("/(c.*w|w.*c)/",$acl)){
+ $acl_all = $ui->has_complete_category_acls($this->selectedBase,"users") ;
+ if(preg_match("/(c.*w|w.*c)/",$acl_all)){
$obj= new usertabs($this->config, $this->config->data['TABS']['USERTABS'], $dn);
$obj->set_acl_base($dn);
$this->CopyPasteHandler->Cut($obj);