summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ca490c6)
raw | patch | inline | side by side (parent: ca490c6)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 6 Nov 2008 10:31:22 +0000 (10:31 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 6 Nov 2008 10:31:22 +0000 (10:31 +0000) |
-Couldn't create new objects if user filter settings were used.
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@12934 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@12934 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/fai/admin/fai/class_divListFai.inc | patch | blob | history | |
gosa-plugins/fai/admin/fai/class_faiManagement.inc | patch | blob | history |
diff --git a/gosa-plugins/fai/admin/fai/class_divListFai.inc b/gosa-plugins/fai/admin/fai/class_divListFai.inc
index 3b57ea41d79c9dd06f34368d1025e22f45f1b7df..453f4e06dd62efbd96b1d64d2666834060b370c0 100644 (file)
$add_sep = false;
/* Get complete fai acls, to be able to check if we must show or hide the snapshot abilities */
- $acl_all = $ui->has_complete_category_acls($this->parent->fai_base,$this->module);
+ $acl_all = $ui->has_complete_category_acls($this->parent->acl_base,$this->module);
/* Add default header */
$listhead = MultiSelectWindow::get_default_header(false);
$s .= "..|<img src='images/lists/new.png' alt='' border='0' class='center'>".
" "._("Create")."|\n";
- $acl = $ui->get_permissions($this->parent->fai_base,"fai/faiProfile");
+ $acl = $ui->get_permissions($this->parent->acl_base,"fai/faiProfile");
if($this->parent->lock_type == "freeze" && !$this->parent->allow_freeze_object_attach){
$s.= "...|<input class='center' type='image' src='plugins/fai/images/freeze.png' alt=''>".
" "._("Freezed")."|\n";
"Create_package" , _("PK") , "faiPackage"));
foreach($arr as $ar){
- $acl = $ui->get_permissions($this->parent->fai_base,"fai/".$ar[4]);
+ $acl = $ui->get_permissions($this->parent->acl_base,"fai/".$ar[4]);
if(preg_match("/c/",$acl)){
$s.= "...|<input class='center' type='image' src='".$ar[0]."' alt=''>".
" ".$ar[1]."|".$ar[2]."|\n";
/* Add copy & cut icons */
$ui = get_userinfo();
$action ="";
- $acl_all = $ui->has_complete_category_acls($this->parent->fai_base,$this->module);
+ $acl_all = $ui->has_complete_category_acls($this->parent->acl_base,$this->module);
if(preg_match("/^opsi_/",$type)){
$editlink ="<a href='?plug=".$_GET['plug']."&edit_opsi_entry=%KEY%' title='%TITLE%'>%NAME%</a>";
diff --git a/gosa-plugins/fai/admin/fai/class_faiManagement.inc b/gosa-plugins/fai/admin/fai/class_faiManagement.inc
index 6f39cfdb1521fa9d0dbbca1c926678d1108c7b44..6c02e1ae5da6b3d96f2c5d58b8aeb308a710f3be 100644 (file)
var $allow_freeze_object_attach = TRUE;
var $no_save;
+ var $acl_base ="";
var $fai_base ="";
var $fai_release ="";
/* Set default release */
$this->fai_base = get_ou("faiou").$this->config->current['BASE'];
+ $this->acl_base = $this->config->current['BASE'];
if(!session::is_set("fai_filter")){
Delete confirmed
****************/
- /* Deltetion was confirmed, so delete this entry
+ /* Deletion was confirmed, so delete this entry
*/
if (isset($_POST['delete_terminal_confirm'])){
if("" != $this->config->search("faiManagement", "POSTREMOVE",array('menu','tabs'))){
/* Load permissions for selected 'dn' and check if
we're allowed to remove this 'dn' */
- if($this->acl_is_removeable()){
+ if(preg_match("/d/",$this->ui->get_permissions($this->acl_base,"fai/faiManagement"))){
$smarty->assign("release_hidden",base64_encode($this->fai_release));
$smarty->assign("info", msgPool::deleteInfo(@LDAP::fix($this->fai_release),_("FAI branch/freeze")));
return($smarty->fetch(get_template_path('remove_branch.tpl',TRUE)));
$br = $this->getBranches();
- if(isset($br[$bb]) && $this->acl_is_removeable()){
+ if(isset($br[$bb]) && preg_match("/d/",$this->ui->get_permissions($this->acl_base,"fai/faiManagement"))){
$name = $br[$bb];
$ldap->cd($bb);
if(isset($_GET['PerformBranch'])){
- if(!$this->acl_is_createable()){
+ if(!preg_match("/c/",$this->ui->get_permissions($this->acl_base,"fai/faiManagement"))){
msg_dialog::display(_("Permission error"), msgPool::permCreate(_("Branch")), ERROR_DIALOG);
}else{
echo "<div style='width:100%;text-align:right;'><form name='form' method='post' action='?plug=".$_GET['plug']."' target='_parent'>
<br><input type='submit' name='CloseIFrame' value='"._("Continue")."'>
+ <input type='hidden' name='php_c_check' value='1'>
</form></div>";
echo "<script language=\"javascript\" type=\"text/javascript\">scrollDown2();</script>" ;
*/
if("" != $this->config->search("faiManagement", "POSTCREATE",array('menu','tabs'))){
if(($s_action == "branch_branch")||($this->dispNewBranch)){
- if(!$this->acl_is_createable()){
- msg_dialog::display(_("Permission error"), msgPool::permCreate(_("Branch")), ERROR_DIALOG);
+ if(!preg_match("/c/",$this->ui->get_permissions($this->acl_base,"fai/faiManagement"))){
+ msg_dialog::display(_("Permission error"), msgPool::permCreate(_("Branch")), ERROR_DIALOG);
}else{
$this->dispNewBranch=true;
$smarty->assign("iframe",false);
*/
if("" != $this->config->search("faiManagement", "POSTCREATE",array('menu','tabs'))){
if(($s_action == "freeze_branch")||($this->dispNewFreeze)){
- if(!$this->acl_is_createable()){
+ if(!preg_match("/c/",$this->ui->get_permissions($this->acl_base,"fai/faiManagement"))){
msg_dialog::display(_("Permission error"), msgPool::permCreate(_("Branch")), ERROR_DIALOG);
}else{
$this->dispNewFreeze = true;
"new_package" => _("package list"));
if(isset($types[$s_action])){
- $acl = $this->ui->get_permissions($this->fai_base,"fai/".$type_acl_mapping[$types[$s_action]]);
+ $acl = $this->ui->get_permissions($this->acl_base,"fai/".$type_acl_mapping[$types[$s_action]]);
if(preg_match("/c/",$acl)){
$this->dialog = new askClassName($this->config,$this->dn,$this->ui,$types[$s_action]);
$this->dialog->parent = &$this;
}
}
$this->base = $base;
- $this->set_acl_base($this->base);
+ $this->set_acl_base($this->acl_base);
$this->lock_type = FAI::get_release_tag(FAI::get_release_dn($base));