From c0b446caa70f45a665c9b5d9a431f370ea362831 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 28 May 2008 09:37:38 +0000 Subject: [PATCH] Updated phone create acls git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11068 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../gofon/admin/systems/gofon/class_phoneGeneric.inc | 12 ++++++++++++ .../gofon/admin/systems/gofon/paste_generic.tpl | 8 ++++++++ 2 files changed, 20 insertions(+) create mode 100644 gosa-plugins/gofon/admin/systems/gofon/paste_generic.tpl diff --git a/gosa-plugins/gofon/admin/systems/gofon/class_phoneGeneric.inc b/gosa-plugins/gofon/admin/systems/gofon/class_phoneGeneric.inc index 6508cac91..1fd72753b 100644 --- a/gosa-plugins/gofon/admin/systems/gofon/class_phoneGeneric.inc +++ b/gosa-plugins/gofon/admin/systems/gofon/class_phoneGeneric.inc @@ -11,6 +11,8 @@ class phoneGeneric extends plugin var $cn = ""; var $description = ""; var $orig_dn = ""; + var $orig_cn = ""; + var $orig_base = ""; var $goFonType = ""; var $goFonDmtfMode = ""; var $goFonHost = ""; @@ -88,6 +90,8 @@ class phoneGeneric extends plugin /* Save dn for later references */ $this->orig_dn= $this->dn; + $this->orig_base= $this->base; + $this->orig_cn= $this->cn; } function set_acl_base($base) @@ -361,6 +365,14 @@ class phoneGeneric extends plugin } } + /* Check if we are allowed to create or move this object + */ + if($this->orig_dn == "new" && !$this->acl_is_createable($this->base)){ + $message[] = msgPool::permCreate(); + }elseif($this->base != $this->orig_base && !$this->acl_is_moveable($this->base)){ + $message[] = msgPool::permMove(); + } + return ($message); } diff --git a/gosa-plugins/gofon/admin/systems/gofon/paste_generic.tpl b/gosa-plugins/gofon/admin/systems/gofon/paste_generic.tpl new file mode 100644 index 000000000..ebaf6c1d6 --- /dev/null +++ b/gosa-plugins/gofon/admin/systems/gofon/paste_generic.tpl @@ -0,0 +1,8 @@ + + + + + +
{$must} + +
-- 2.30.2