From: hickert Date: Fri, 4 Aug 2006 08:52:06 +0000 (+0000) Subject: Added acls to application template. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f137f4f97c1b79a10d40c5a6c2e5a5cf6573e87b;p=gosa.git Added acls to application template. Added freeze acls. Fixed problem with selected release git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4387 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/applications/class_applicationGeneric.inc b/plugins/admin/applications/class_applicationGeneric.inc index bf90cea8c..d58ac6e7c 100644 --- a/plugins/admin/applications/class_applicationGeneric.inc +++ b/plugins/admin/applications/class_applicationGeneric.inc @@ -166,7 +166,7 @@ class application extends plugin $smarty->assign("rand", rand(0, 10000)); /* Variables */ - foreach(array("description", "gosaApplicationExecute", "gosaApplicationName","cn") as $val){ + foreach(array("description", "gosaApplicationExecute", "gosaApplicationName","cn","gotoLogonScript","gosaApplicationIcon") as $val){ $smarty->assign($val, $this->$val); $smarty->assign($val."ACL", chkacl($this->acl, $val)); } diff --git a/plugins/admin/applications/class_applicationManagement.inc b/plugins/admin/applications/class_applicationManagement.inc index 1df485d75..db178e424 100644 --- a/plugins/admin/applications/class_applicationManagement.inc +++ b/plugins/admin/applications/class_applicationManagement.inc @@ -238,6 +238,13 @@ class applicationManagement extends plugin /* Get 'dn' from posted 'applist', must be unique */ $this->dn= $this->applications[$s_entry]['dn']; + /* Get faistate to check if this applications is frezzed. + Freezed applications can't be modified anyway */ + $state = ""; + if(isset($this->applications[$s_entry]['FAIstate'])){ + $state = $this->applications[$s_entry]['FAIstate'][0]; + } + /* Check locking, save current plugin in 'back_plugin', so the dialog knows where to return. */ if (($user= get_lock($this->dn)) != ""){ @@ -252,9 +259,14 @@ class applicationManagement extends plugin $acl= get_permissions ($this->dn, $this->ui->subtreeACL); /* Register apptabs to trigger edit dialog */ - $this->apptabs= new apptabs($this->config, - $this->config->data['TABS']['APPSTABS'], $this->dn); - $this->apptabs->set_acl($acl); + $this->apptabs= new apptabs($this->config,$this->config->data['TABS']['APPSTABS'], $this->dn); + + /* If this is a freeze assign acl none */ + if(preg_match("/freeze/",$state)){ + $this->apptabs->set_acl(array()); + }else{ + $this->apptabs->set_acl($acl); + } $_SESSION['objectinfo']= $this->dn; } diff --git a/plugins/admin/applications/generic.tpl b/plugins/admin/applications/generic.tpl index 7c4128216..4877a8802 100644 --- a/plugins/admin/applications/generic.tpl +++ b/plugins/admin/applications/generic.tpl @@ -58,9 +58,9 @@  
- - - + + + @@ -97,9 +97,9 @@

{t}Script{/t} {t}Script{/t}

- - - + + +