summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 458cb51)
raw | patch | inline | side by side (parent: 458cb51)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 11 Jan 2007 11:34:02 +0000 (11:34 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 11 Jan 2007 11:34:02 +0000 (11:34 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5536 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/plugins/admin/applications/class_applicationGeneric.inc b/plugins/admin/applications/class_applicationGeneric.inc
index a2f7acccfc6a21ce6b793e687033cbded32fdc88..746dbd117f842d47d44b3d5e20098cbe8af7dfde 100644 (file)
$head = $this->generateTemplate();
$this->gotoLogonScript= $this->generateTemplate().preg_replace('/.*### END HEADER ###/s', '', $this->gotoLogonScript);
- if((isset($_POST['upLoad']))&&(isset($_FILES['ScriptFile']))){
+ if((isset($_POST['upLoad']))&&(isset($_FILES['ScriptFile'])) && chkacl($this->acl,"gotoLogonScript") == ""){
$str = file_get_contents($_FILES['ScriptFile']['tmp_name']);
$this->gotoLogonScript = $str;
}
/* Base select dialog */
$once = true;
foreach($_POST as $name => $value){
- if(preg_match("/^chooseBase/",$name) && $once){
+ if(preg_match("/^chooseBase/",$name) && $once && chkacl($this->acl,"base") == ""){
$once = false;
$this->dialog = new baseSelectDialog($this->config);
$this->dialog->setCurrentBase($this->base);
}
/* Check for picture upload */
- if (isset($_FILES['picture_file']['name']) && $_FILES['picture_file']['name'] != ""){
+ if (isset($_FILES['picture_file']['name']) && $_FILES['picture_file']['name'] != "" && chkacl($this->acl,"gosaApplicationIcon") == ""){
if (!is_uploaded_file($_FILES['picture_file']['tmp_name'])) {
print_red (_("The specified picture has not been uploaded correctly."));
}
diff --git a/plugins/admin/applications/class_applicationParameters.inc b/plugins/admin/applications/class_applicationParameters.inc
index a1655a78f8bb7dfe5a0da33ca97518bb68672ec2..f72339f9618ba2806f4a0a11a2949c6537f1e7c0 100644 (file)
var $CopyPasteVars = array("option_name","option_value");
var $attributes= array("gosaApplicationParameter");
var $objectclasses= array();
+var $ui;
function applicationParameters ($config, $dn= NULL, $parent= NULL)
{
} else {
$this->is_account= FALSE;
}
+ $this->ui = get_userinfo();
}
function execute()
/* Call parent execute */
plugin::execute();
+ $acl= get_permissions ($this->dn, $this->ui->subtreeACL);
+ $this->acl= get_module_permission($acl, "application", $this->dn);
+
/* Do we need to flip is_account state? */
- if (isset($_POST['modify_state'])){
+ if (isset($_POST['modify_state']) && chkacl($this->acl,"gotoLogonScript")==""){
$this->is_account= !$this->is_account;
}
$this->option_value[$i]= "";
}
- /* Remove value from list */
- for ($i= 0; $i<count($this->option_name); $i++){
- if (isset($_POST["remove$i"])){
- $k= 0;
- $on= array();
- $ov= array();
- for ($j= 0; $j<count($this->option_name); $j++){
- if ($j != $i){
- $on[$k]= $this->option_name[$j];
- $ov[$k]= $this->option_value[$j];
- $k++;
+ if(chkacl($this->acl,"gotoLogonScript") == ""){
+
+ /* Remove value from list */
+ for ($i= 0; $i<count($this->option_name); $i++){
+ if (isset($_POST["remove$i"])){
+ $k= 0;
+ $on= array();
+ $ov= array();
+ for ($j= 0; $j<count($this->option_name); $j++){
+ if ($j != $i){
+ $on[$k]= $this->option_name[$j];
+ $ov[$k]= $this->option_value[$j];
+ $k++;
+ }
}
+ $this->option_name= $on;
+ $this->option_value= $ov;
+ break;
}
- $this->option_name= $on;
- $this->option_value= $ov;
- break;
}
}
/* Save data to object */
function save_object()
{
- if (isset($_POST['option0'])){
- for ($i= 0; $i<count($this->option_name); $i++){
- $this->option_name[$i]= $_POST["option$i"];
- $this->option_value[$i]= "";
- if ($_POST["value$i"] != ""){
- $this->option_value[$i]= $_POST["value$i"];
- }
- }
- }
+ if(chkacl($this->acl,"gotoLogonScript") == ""){
+ if (isset($_POST['option0'])){
+ for ($i= 0; $i<count($this->option_name); $i++){
+ $this->option_name[$i]= $_POST["option$i"];
+ $this->option_value[$i]= "";
+ if ($_POST["value$i"] != ""){
+ $this->option_value[$i]= $_POST["value$i"];
+ }
+ }
+ }
+ }
}
diff --git a/plugins/admin/applications/class_divListApplication.inc b/plugins/admin/applications/class_divListApplication.inc
index 834b097e9f9b964122e248ab3e6186b5e9d89734..4676a4bb7ac129d4558fd42745548a8292ddfdf1 100755 (executable)
foreach($list as $key => $val){
+ $acl= get_permissions ($val['dn'], $this->ui->subtreeACL);
+ $acl= get_module_permission($acl, "application", $val['dn']);
+
/* Get state */
$state = "";
if(isset($val['FAIstate'])){
/* Create action icons */
$actions = "";
- if(($this->parent->CopyPasteHandler) && (!$is_freezed)){
- $actions.= "<input class='center' type='image'
- src='images/editcut.png' alt='"._("cut")."' name='cut_%KEY%' title='"._("Cut this entry")."'> ";
+
+ if($acl == "#all#"){
+ if(($this->parent->CopyPasteHandler) && (!$is_freezed)){
+ $actions.= "<input class='center' type='image'
+ src='images/editcut.png' alt='"._("cut")."' name='cut_%KEY%' title='"._("Cut this entry")."'> ";
+ }
+ if($this->parent->CopyPasteHandler){
+ $actions.= "<input class='center' type='image'
+ src='images/editcopy.png' alt='"._("copy")."' name='copy_%KEY%' title='"._("Copy this entry")."'> ";
+ }
}
- $actions.= "<input class='center' type='image'
- src='images/editcopy.png' alt='"._("copy")."' name='copy_%KEY%' title='"._("Copy this entry")."'> ";
$actions.= "<input class='center' type='image'
src='images/edit.png' alt='"._("edit")."' name='appl_edit_%KEY%' title='"._("Edit this entry")."'>";
if($is_freezed){
$actions.= "<img src='images/empty.png' width='16' alt=' ' class='center'>";
}else{
- $actions.= "<input class='center' type='image'
- src='images/edittrash.png' alt='"._("delete")."' name='appl_del_%KEY%' title='"._("Delete this entry")."'>";
+
+ if(chkacl($acl,"delete") == ""){
+ $actions.= "<input class='center' type='image'
+ src='images/edittrash.png' alt='"._("delete")."' name='appl_del_%KEY%' title='"._("Delete this entry")."'>";
+ }
}
index 51288bdc339d2598ea7be217e6726ea42d94cdac..158c80521b1b822254405eb413cb3ca609cd3aba 100644 (file)
@@ -429,8 +429,14 @@ $ACLD['mailqueue'] = array("mailqueue","unhold_all","hold_all","del_all","reque
$ACLD['ldapmanager']= array("ldapmanager","import","export","xlsexport","csvimport");
$ACLD['FAIclass'] = array(
- // Allow displaying of FAI menu element
+
+$ACLD['phonequeue'] = array( "create","goFonTimeOut","goFonMaxLen","goFonAnnounceFrequency","goFonDialOption_t","goFonDialOption_T",
+ "goFonDialOption_h","goFonDialOption_r","cn","goFonHomeServer",
+ "goFonDialOption_H","goFonMusiconHold","goFonWelcomeMusic","goFonQueueReportHold","goFonQueueYouAreNext",
+ "goFonQueueThereAre","goFonQueueCallsWaiting","goFonQueueThankYou","goFonQueueMinutes","goFonQueueSeconds","goFonQueueLessThan",
+ "telephoneNumber","goFonQueueLanguage","goFonQueueStrategy","goFonQueueAnnounceHoldtime","goFonQueueAnnounce","goFonDialOption","goFonQueueRetry"); // Allow displaying of FAI menu element
"FAIclass" => "FAI management enabled");
$ACLD['goFonMacro'] =array("goFonMacro","edit","delete");
+$ACLD['mailogroup'] = array("create");
?>