X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=html%2FgetFAIscript.php;h=60e53d56a69f92c422b7fe4870d8636568fa345f;hb=a638cd0656d26deb0aedff4257b5ec0ba1f636d3;hp=ddd120fc48b1afbaa292de513b6612c804063213;hpb=aa26fd47b6cffd3a40d6cfb8e780d813395600a0;p=gosa.git diff --git a/html/getFAIscript.php b/html/getFAIscript.php index ddd120fc4..60e53d56a 100644 --- a/html/getFAIscript.php +++ b/html/getFAIscript.php @@ -75,9 +75,10 @@ $ui= $_SESSION["ui"]; $config= $_SESSION['config']; /* Check ACL's */ -$acl= get_permissions ($config->current['BASE'], $ui->subtreeACL); -$acl= get_module_permission($acl, "all", $config->current['BASE']); -if (chkacl($acl, "all") != ""){ +#FIXME Use more specific acl categories instead of all/all +$ui = get_userinfo(); +$acl = $ui->get_permissions(base64_decode($_GET['id']),"all/all"); +if(!preg_match("/r/",$acl)){ header ("Location: index.php"); exit; }