Update extension_edit.php
This commit is contained in:
parent
352f6c4ca5
commit
e2284ba408
|
|
@ -334,15 +334,13 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
}
|
}
|
||||||
|
|
||||||
//set the default user context
|
//set the default user context
|
||||||
if (permission_exists("extension_user_context")) {
|
if (permission_exists("extension_user_context")) {
|
||||||
//allow a user assigned to super admin to change the user_context
|
//allow a user assigned to super admin to change the user_context
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
//if the user_context was not set then set the default value
|
//if the user_context was not set then set the default value
|
||||||
if (strlen($user_context) == 0) {
|
$user_context = $_SESSION['domain_name'];
|
||||||
$user_context = $_SESSION['domain_name'];
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//prevent users from bypassing extension limit by using range
|
//prevent users from bypassing extension limit by using range
|
||||||
if ($_SESSION['limit']['extensions']['numeric'] != '') {
|
if ($_SESSION['limit']['extensions']['numeric'] != '') {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue