summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 14bf2cd)
raw | patch | inline | side by side (parent: 14bf2cd)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 26 Jul 2006 05:59:37 +0000 (05:59 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 26 Jul 2006 05:59:37 +0000 (05:59 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4301 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/connectivity/class_pptpAccount.inc | patch | blob | history |
diff --git a/plugins/personal/connectivity/class_pptpAccount.inc b/plugins/personal/connectivity/class_pptpAccount.inc
index fdb110b1eec2a8edc6ca49dce3b91b37623e9257..1f0627488d830a25d4d778986638a8be9749f16a 100644 (file)
$smarty->assign("wstate", "disabled");
}
- $smarty->assign('gosapptpACL', chkacl($this->acl, 'gosapptp'));
+
+
+ if(($this->is_account && $this->acl_is_removeable()) || (!$this->is_account && $this->acl_is_createable())) {
+ $smarty->assign('gosapptpACL', "");
+ }else{
+ $smarty->assign('gosapptpACL', " disabled ");
+ }
$display.= $smarty->fetch (get_template_path('pptp.tpl', TRUE, dirname(__FILE__)));
return ($display);
function remove_from_parent()
{
- if(chkacl($this->acl, 'gosapptp') == ""){
+ if($this->acl_is_removeable())
/* Cancel if there's nothing to do here */
if (!$this->initially_was_account){
return;
if (isset($_POST['connectivityTab'])){
if (isset($_POST['pptp'])){
if (!$this->is_account && $_POST['pptp'] == "B"){
- $this->is_account= TRUE;
+ if($this->acl_is_createable()){
+ $this->is_account= TRUE;
+ }
}
} else {
- $this->is_account= FALSE;
+ if($this->acl_is_removeable()){
+ $this->is_account= FALSE;
+ }
}
}
}
- /* Return plugin informations for acl handling
- #FIXME This is only an enable/disable checkbox for this account, there is possibly a better solution available later */
+ /* Return plugin informations for acl handling */
function plInfo()
{
return (array(
"plOptions" => array(),
"plProvidedAcls" => array(
- "pptpServerAccount" => "!!! FIXME "._("PPTP account"))
));
}
}