From e2b8a5b3291232c7bd3d5fce6dfb1ee008f6b062 Mon Sep 17 00:00:00 2001
From: jmontoya <jmontoya@ispconfig3>
Date: Thu, 05 Aug 2010 06:14:54 -0400
Subject: [PATCH] Adding new remoting functions to the remote_user.tform.php page
---
interface/web/designer/module_nav_flip.php | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/interface/web/designer/module_nav_flip.php b/interface/web/designer/module_nav_flip.php
index 423a52a..f3fc164 100644
--- a/interface/web/designer/module_nav_flip.php
+++ b/interface/web/designer/module_nav_flip.php
@@ -32,11 +32,8 @@
if($_SESSION["s"]["user"]["typ"] != "admin") die("Admin permissions required.");
-// Checke Berechtigungen f�r Modul
-if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
- header("Location: ../index.php");
- exit;
-}
+//* Check permissions for module
+$app->auth->check_module_permissions('designer');
// Lade Template
$app->uses('tpl');
@@ -88,7 +85,7 @@
// zu Liste springen
- header("Location: module_show.php?id=$module_name");
+ echo "HEADER_REDIRECT:designer/module_show.php?id=$module_name";
exit;
}
?>
\ No newline at end of file
--
Gitblit v1.9.1