Fix: security check in user/group

This commit is contained in:
Regis Houssin 2009-05-01 10:24:32 +00:00
parent 37cac65f5a
commit 67377f7729
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ if ($_GET["id"])
}
// Security check
$result = restrictedArea($user, 'user',$_GET["id"]);
$result = restrictedArea($user, 'user', $_GET["id"], '', 'user');
if ($user->id <> $_GET["id"] && ! $canreadperms) accessforbidden();
$langs->load("users");

View File

@ -37,7 +37,7 @@ $langs->load("users");
$langs->load("other");
// Security check
$result = restrictedArea($user, 'usergroup',$_GET["id"]);
$result = restrictedArea($user, 'user', $_GET["id"], '', 'user');
$action=isset($_GET["action"])?$_GET["action"]:$_POST["action"];