Fix: security check in user/group
This commit is contained in:
parent
37cac65f5a
commit
67377f7729
@ -52,7 +52,7 @@ if ($_GET["id"])
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Security check
|
// Security check
|
||||||
$result = restrictedArea($user, 'user',$_GET["id"]);
|
$result = restrictedArea($user, 'user', $_GET["id"], '', 'user');
|
||||||
if ($user->id <> $_GET["id"] && ! $canreadperms) accessforbidden();
|
if ($user->id <> $_GET["id"] && ! $canreadperms) accessforbidden();
|
||||||
|
|
||||||
$langs->load("users");
|
$langs->load("users");
|
||||||
|
|||||||
@ -37,7 +37,7 @@ $langs->load("users");
|
|||||||
$langs->load("other");
|
$langs->load("other");
|
||||||
|
|
||||||
// Security check
|
// Security check
|
||||||
$result = restrictedArea($user, 'usergroup',$_GET["id"]);
|
$result = restrictedArea($user, 'user', $_GET["id"], '', 'user');
|
||||||
|
|
||||||
$action=isset($_GET["action"])?$_GET["action"]:$_POST["action"];
|
$action=isset($_GET["action"])?$_GET["action"]:$_POST["action"];
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user