summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 887b138)
raw | patch | inline | side by side (parent: 887b138)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 26 Jul 2006 09:52:39 +0000 (09:52 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 26 Jul 2006 09:52:39 +0000 (09:52 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4312 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/plugins/personal/connectivity/class_connectivity.inc b/plugins/personal/connectivity/class_connectivity.inc
index 534541ecd2c4388fb0253c204fe0043b26482479..83252cc8a75011f80f57e8f2c8aae3718bbde9d7 100644 (file)
/* Execude objects */
$is_first= true;
+
+ $ReadOnly = (!is_object($this->parent) && !isset($_SESSION['edit']));
+
foreach ($this->plugin_name as $name){
+ $this->plugin[$name]->ReadOnly = $ReadOnly;
if (!$is_first){
$display.= '<p class="seperator"> </p>';
} else {
diff --git a/plugins/personal/connectivity/class_intranetAccount.inc b/plugins/personal/connectivity/class_intranetAccount.inc
index 49c540d2748a0a7f1835b8eb7ea655a112bf6dd0..46f44deabd9a71654c2d3091b2d1360826949fe6 100644 (file)
var $attributes= array();
/* ObjectClasses list for save action */
var $objectclasses= array("gosaIntranetAccount");
+ var $ReadOnly = false;
/*! \brief Konstructor
$smarty->assign("tabbed", 0);
}
- if(($this->is_account && $this->acl_is_removeable()) || (!$this->is_account && $this->acl_is_createable())) {
+ if((!$this->ReadOnly) && ($this->is_account && $this->acl_is_removeable()) || (!$this->is_account && $this->acl_is_createable())) {
$smarty->assign('gosaIntranetACL', "");
}else{
$smarty->assign('gosaIntranetACL', " disabled ");
diff --git a/plugins/personal/connectivity/class_kolabAccount.inc b/plugins/personal/connectivity/class_kolabAccount.inc
index 9d8899e30553cbc64db47a97aba95b3b95d8030e..84ea03a2515fe46958fb50a86dd8fe3cce39af75 100644 (file)
/* Helper */
var $imapping= array();
var $mail_Account = false;
+ var $ReadOnly = false;
function kolabAccount ($config, $dn= NULL)
{
$tmp = $this->plInfo();
foreach($tmp['plProvidedAcls'] as $acl => $description){
- $smarty->assign($acl."ACL",$this->getacl($acl));
- $smarty->assign($acl."_W", $this->acl_is_writeable($acl));
+ $smarty->assign($acl."ACL",$this->getacl($acl,$this->ReadOnly));
+ $smarty->assign($acl."_W", $this->acl_is_writeable($acl,$this->ReadOnly));
}
$smarty->assign("is_account" , $this->is_account);
- $smarty->assign("is_removeable",$this->acl_is_removeable());
- $smarty->assign("is_createable",$this->acl_is_createable());
+
+ if($this->ReadOnly){
+ $smarty->assign("is_removeable",false);
+ $smarty->assign("is_createable",false);
+ }else{
+ $smarty->assign("is_removeable",$this->acl_is_removeable());
+ $smarty->assign("is_createable",$this->acl_is_createable());
+ }
/* Check for invitation action */
$nr= 0;
diff --git a/plugins/personal/connectivity/class_opengwAccount.inc b/plugins/personal/connectivity/class_opengwAccount.inc
index 03da9692e03bc41f688d43a4ae6efea2beff73e7..e282f0c458b7d0bb37c12768c1b2ad48ec7959a9 100644 (file)
var $is_account = false;
var $initialy_was_account = false;
var $OGWPassword = "";
+ var $ReadOnly = false;
function opengwAccount ($config, $dn= NULL)
{
diff --git a/plugins/personal/connectivity/class_phpgwAccount.inc b/plugins/personal/connectivity/class_phpgwAccount.inc
index 130bbe2d6b64987bca746fb8a65d9bdca9c6aae3..c458f8eb00648fab344a9ba24b19d4d1f9ea38c4 100644 (file)
/* attribute list for save action */
var $attributes= array("phpgwAccountExpires", "phpgwAccountStatus", "phpgwAccountType");
var $objectclasses= array("phpgwAccount");
+ var $ReadOnly = false;
function phpgwAccount ($config, $dn= NULL)
{
$smarty->assign("phpgwState", "");
}
- if(($this->is_account && $this->acl_is_removeable()) || (!$this->is_account && $this->acl_is_createable())) {
+ if((!$this->ReadOnly)&&($this->is_account && $this->acl_is_removeable()) || (!$this->is_account && $this->acl_is_createable())) {
$smarty->assign('phpgwAccountACL', "");
}else{
$smarty->assign('phpgwAccountACL', " disabled ");
diff --git a/plugins/personal/connectivity/class_phpscheduleitAccount.inc b/plugins/personal/connectivity/class_phpscheduleitAccount.inc
index 76cc349d548556ed26dc1aa0121282a0f7b3bfb5..558481ab9bfe6aaefce3b46c943eddae0c267ab4 100644 (file)
/* attribute list for save action */
var $attributes= array();
var $objectclasses= array("phpscheduleitAccount");
+ var $ReadOnly =false;
function phpscheduleitAccount ($config, $dn= NULL)
{
$smarty->assign("wstate", "disabled");
}
- if(($this->is_account && $this->acl_is_removeable()) || (!$this->is_account && $this->acl_is_createable())) {
+ if((!$this->ReadOnly) && (($this->is_account && $this->acl_is_removeable()) || (!$this->is_account && $this->acl_is_createable()))) {
$smarty->assign('gosaphpscheduleitACL', "");
}else{
$smarty->assign('gosaphpscheduleitACL', " disabled ");
diff --git a/plugins/personal/connectivity/class_pptpAccount.inc b/plugins/personal/connectivity/class_pptpAccount.inc
index 622fc0126105694f8217f3c37e4dc4a2b4e4162c..a037779449b640f4701bb717ff196e1bd67d96eb 100644 (file)
var $attributes= array();
var $objectclasses= array("pptpServerAccount");
+ var $ReadOnly = false;
+
function pptpAccount ($config, $dn= NULL)
{
plugin::plugin ($config, $dn);
$smarty->assign("wstate", "disabled");
}
- if(($this->is_account && $this->acl_is_removeable()) || (!$this->is_account && $this->acl_is_createable())) {
+ if((!$this->ReadOnly) && ($this->is_account && $this->acl_is_removeable()) || (!$this->is_account && $this->acl_is_createable())) {
$smarty->assign('gosapptpACL', "");
}else{
$smarty->assign('gosapptpACL', " disabled ");
diff --git a/plugins/personal/connectivity/class_proxyAccount.inc b/plugins/personal/connectivity/class_proxyAccount.inc
index 495924237642e95bad6c192c2d61270e93e2efdd..1280d3b9f268c6f840281d872e107ef3906bdd0c 100644 (file)
var $attributes= array("gosaProxyID", "gosaProxyAcctFlags", "gosaProxyWorkingStart",
"gosaProxyWorkingStop", "gosaProxyQuota", "gosaProxyQuotaPeriod");
var $objectclasses= array("gosaProxyAccount");
+ var $ReadOnly = false;
function proxyAccount ($config, $dn= NULL)
{
$smarty= get_smarty();
- if(($this->is_account && $this->acl_is_removeable()) || (!$this->is_account && $this->acl_is_createable())) {
+ if((!$this->ReadOnly)&& ($this->is_account && $this->acl_is_removeable()) || (!$this->is_account && $this->acl_is_createable())) {
$smarty->assign('proxyAccountACL', "");
}else{
$smarty->assign('proxyAccountACL', " disabled ");
$tmp = $this->plInfo();
foreach($tmp['plProvidedAcls'] as $acl => $desc){
- $smarty->assign($acl."ACL",$this->getacl($acl));
- $smarty->assign($acl."_W",$this->acl_is_writeable($acl));
+ $smarty->assign($acl."ACL",$this->getacl($acl,$this->ReadOnly));
+ $smarty->assign($acl."_W",$this->acl_is_writeable($acl,$this->ReadOnly));
}
/* Assign working time */
diff --git a/plugins/personal/connectivity/class_pureftpdAccount.inc b/plugins/personal/connectivity/class_pureftpdAccount.inc
index 596ab556bf5138d9343200ab65daac59c7c4a3e9..47c5aaf18afd9d7e01f28c6f2d7af0424703a07c 100644 (file)
var $attributes= array("FTPQuotaFiles","FTPQuotaMBytes","FTPUploadRatio","FTPDownloadRatio",
"FTPUploadBandwidth","FTPDownloadBandwidth","FTPStatus","FTPuid","FTPgid");
var $objectclasses= array("PureFTPdUser");
+ var $ReadOnly;
function pureftpdAccount ($config, $dn= NULL)
{
$tmp = $this->plInfo();
$changeState = "";
foreach($tmp['plProvidedAcls'] as $key => $desc){
- $smarty->assign($key."ACL", $this->getacl($key));
- $smarty->assign($key."_W", $this->acl_is_writeable($key));
+ $smarty->assign($key."ACL", $this->getacl($key,$this->ReadOnly));
+ $smarty->assign($key."_W", $this->acl_is_writeable($key,$this->ReadOnly));
if($this->acl_is_writeable($key)){
$changeState.= " changeState('".$key."'); \n";
}
$smarty->assign("use_FTPStatus", ($this->FTPStatus == "disabled") ? "checked" : "");
- if(($this->is_account && $this->acl_is_removeable()) || (!$this->is_account && $this->acl_is_createable())) {
+ if((!$this->ReadOnly)&&($this->is_account && $this->acl_is_removeable()) || (!$this->is_account && $this->acl_is_createable())) {
$smarty->assign('pureftpdACL', "");
}else{
$smarty->assign('pureftpdACL', " disabled ");