summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 47ac1ae)
raw | patch | inline | side by side (parent: 47ac1ae)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 2 Dec 2005 12:05:42 +0000 (12:05 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 2 Dec 2005 12:05:42 +0000 (12:05 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2205 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/gofon/conference/class_phoneConferenceGeneric.inc | patch | blob | history | |
plugins/gofon/conference/class_phoneConferenceManagment.inc | patch | blob | history |
diff --git a/plugins/gofon/conference/class_phoneConferenceGeneric.inc b/plugins/gofon/conference/class_phoneConferenceGeneric.inc
index 961650e37a091935b86aba0f127327b3c987266f..f56e30a1a71751dc53814d8785f962be20eb8f78 100644 (file)
$this->base= preg_replace ("/^[^,]+,/", "", $this->dn);
}
- $acl= get_permissions ($this->dn, $this->ui->subtreeACL);
- $this->acl= get_module_permission($acl, "conference", $this->dn);
+ $ui= get_userinfo();
+ $acl= get_permissions ($ui->dn, $this->ui->subtreeACL);
+ $this->acl= get_module_permission($acl, "conference", $ui->dn);
$this->goFonConferenceOwner=$this->ui->dn;
/* Parse Options ...
function remove_from_parent()
{
- $this->SQL_remove_me(true);
+ $this->SQL_remove_me(true);
$ldap= $this->config->get_ldap_link();
$ldap->cd ($this->dn);
diff --git a/plugins/gofon/conference/class_phoneConferenceManagment.inc b/plugins/gofon/conference/class_phoneConferenceManagment.inc
index bbde58faf9930dae3bb43f03acfa4e1347498206..9c3229d60a500c76bc8387707f2d23723f655b2b 100644 (file)
* Finally delete department
*/
if (isset($_POST['delete_department_confirm'])){
- $acl= get_permissions ($this->dn, $this->ui->subtreeACL);
- $acl= get_module_permission($acl, "conference", $this->dn);
- if (chkacl($acl, "all") == ""){
+ if (chkacl($this->acl, "delete") == ""){
$this->remove_from_parent();
gosa_log ("Department object'".$this->dn."' has been removed");
$this->reload ();
function remove_from_parent()
{
$cfg = new conference($this->config, $this->dn);
+
$cfg->remove_from_parent();
$ldap= $this->config->get_ldap_link();
$ldap->cd ($this->dn);