summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 549bb3d)
raw | patch | inline | side by side (parent: 549bb3d)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 15 Jan 2007 05:46:22 +0000 (05:46 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 15 Jan 2007 05:46:22 +0000 (05:46 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5557 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/fai/class_faiManagement.inc | patch | blob | history |
index 16c39074b59b3fd22168dfce036f3f3520e61593..3c982ccc9ba70b394d88c4012978c0fc80bf41d4 100644 (file)
/* Some nice guy may send this as POST, so we've to check
for the permissions again. */
+ $acl= get_permissions ($this->dn, $this->ui->subtreeACL);
+ $this->acl= get_module_permission($acl, "FAIclass", $this->dn);
if (chkacl($this->acl, "delete") == ""){
/* Find out more about the object type */
Create a new branch "insert Name"
****************/
- if((isset($_POST['UseBranchName']))&&(($this->dispNewBranch)||($this->dispNewFreeze))){
+ $acl= get_permissions ($this->DivListFai->selectedBase, $this->ui->subtreeACL);
+ $this->acl= get_module_permission($acl, "FAIclass", $this->DivListFai->selectedBase);
+ if((isset($_POST['UseBranchName']))&&(($this->dispNewBranch)||($this->dispNewFreeze)) && chkacl($this->acl,"FAIclass") == ""){
$_SESSION['LASTPOST'] = $_POST;
if($this->dispNewBranch){
Create a new branch
****************/
- if(isset($_GET['PerformBranch'])){
+ $acl= get_permissions ($this->DivListFai->selectedBase, $this->ui->subtreeACL);
+ $this->acl= get_module_permission($acl, "FAIclass", $this->DivListFai->selectedBase);
+ if(isset($_GET['PerformBranch']) && chkacl($this->acl,"FAIclass") == ""){
/* Create it know */
$this->dispNewBranch = false;
$this->dispNewFreeze = false;
Display dialog to enter new Branch name
****************/
- if(($s_action == "branch_branch")||($this->dispNewBranch)){
+ $acl= get_permissions ($this->DivListFai->selectedBase, $this->ui->subtreeACL);
+ $this->acl= get_module_permission($acl, "FAIclass", $this->DivListFai->selectedBase);
+ if((($s_action == "branch_branch")||($this->dispNewBranch)) && chkacl($this->acl,"FAIclass") == ""){
$this->dispNewBranch=true;
$smarty->assign("iframe",false);
$display .= $smarty->fetch(get_template_path('faiNewBranch.tpl', TRUE, dirname(__FILE__)));
Display dialog to enter new Freeze name
****************/
- if(($s_action == "freeze_branch")||($this->dispNewFreeze)){
+ $acl= get_permissions ($this->DivListFai->selectedBase, $this->ui->subtreeACL);
+ $this->acl= get_module_permission($acl, "FAIclass", $this->DivListFai->selectedBase);
+ if((($s_action == "freeze_branch")||($this->dispNewFreeze)) && chkacl($this->acl,"FAIclass") == ""){
$this->dispNewFreeze = true;
$smarty->assign("iframe",false);
$display .= $smarty->fetch(get_template_path('faiNewBranch.tpl', TRUE, dirname(__FILE__)));
"new_template" => "FAItemplate",
"new_package" => "FAIpackageList");
- if(isset($types[$s_action])){
+ $acl= get_permissions ($this->DivListFai->selectedBase, $this->ui->subtreeACL);
+ $this->acl= get_module_permission($acl, "FAIclass", $this->DivListFai->selectedBase);
+ if(isset($types[$s_action]) && chkacl($this->acl,"FAIclass") == ""){
$this->dialog = new askClassName($this->config,$this->dn,$this->ui,$types[$s_action]);
}
/* New Profile */
- if($s_action == "new_profile"){
+ $acl= get_permissions ($this->DivListFai->selectedBase, $this->ui->subtreeACL);
+ $this->acl= get_module_permission($acl, "FAIclass", $this->DivListFai->selectedBase);
+ if($s_action == "new_profile" && chkacl($this->acl,"FAIclass") == ""){
$this->dn = "new" ;
$a_setup= $this->get_type(array("objectClass"=>array("FAIprofile")));
function getBranches($base = false,$prefix = "")
{
$ret = array("main"=>"/");
+ $acl= get_permissions ($this->DivListFai->selectedBase, $this->ui->subtreeACL);
+ $this->acl= get_module_permission($acl, "FAIclass", $this->DivListFai->selectedBase);
+ if(chkacl($this->acl,"FAIclass") != ""){
+ return($ret);
+ }
+
$ldap = $this->config->get_ldap_link();
if(!$base){
$base= "ou=fai,ou=configs,ou=systems,".$_SESSION['CurrentMainBase'];
$objects = array();
$this->objects = array();
+ $acl= get_permissions ($this->DivListFai->selectedBase, $this->ui->subtreeACL);
+ $this->acl= get_module_permission($acl, "FAIclass", $base);
+ if(chkacl($this->acl,"FAIclass") != ""){
+ return;
+ }
+
/* Walk through possible sub departments and fetch all FAI objects */
foreach($ObjectTypes as $type => $obj){