manager/actions/mutate_module.dynamic.php 1 location
|
@@ 5-18 (lines=14) @@
|
2 |
|
if( ! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) {
|
3 |
|
die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly.");
|
4 |
|
}
|
5 |
|
switch($modx->getManagerApi()->action) {
|
6 |
|
case 107:
|
7 |
|
if(!$modx->hasPermission('new_module')) {
|
8 |
|
$modx->webAlertAndQuit($_lang["error_no_privileges"]);
|
9 |
|
}
|
10 |
|
break;
|
11 |
|
case 108:
|
12 |
|
if(!$modx->hasPermission('edit_module')) {
|
13 |
|
$modx->webAlertAndQuit($_lang["error_no_privileges"]);
|
14 |
|
}
|
15 |
|
break;
|
16 |
|
default:
|
17 |
|
$modx->webAlertAndQuit($_lang["error_no_privileges"]);
|
18 |
|
}
|
19 |
|
$id = isset($_REQUEST['id']) ? (int)$_REQUEST['id'] : 0;
|
20 |
|
// Get table names (alphabetical)
|
21 |
|
$tbl_membergroup_names = $modx->getDatabase()->getFullTableName('membergroup_names');
|
manager/actions/mutate_role.dynamic.php 1 location
|
@@ 6-19 (lines=14) @@
|
3 |
|
die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
4 |
|
} |
5 |
|
|
6 |
|
switch ((int)$modx->getManagerApi()->action) { |
7 |
|
case 35: |
8 |
|
if (!$modx->hasPermission('edit_role')) { |
9 |
|
$modx->webAlertAndQuit($_lang["error_no_privileges"]); |
10 |
|
} |
11 |
|
break; |
12 |
|
case 38: |
13 |
|
if (!$modx->hasPermission('new_role')) { |
14 |
|
$modx->webAlertAndQuit($_lang["error_no_privileges"]); |
15 |
|
} |
16 |
|
break; |
17 |
|
default: |
18 |
|
$modx->webAlertAndQuit($_lang["error_no_privileges"]); |
19 |
|
} |
20 |
|
|
21 |
|
$role = isset($_REQUEST['id']) ? (int)$_REQUEST['id'] : 0; |
22 |
|
|
manager/actions/mutate_user.dynamic.php 1 location
|
@@ 6-19 (lines=14) @@
|
3 |
|
die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
4 |
|
} |
5 |
|
|
6 |
|
switch($modx->getManagerApi()->action) { |
7 |
|
case 12: |
8 |
|
if(!$modx->hasPermission('edit_user')) { |
9 |
|
$modx->webAlertAndQuit($_lang["error_no_privileges"]); |
10 |
|
} |
11 |
|
break; |
12 |
|
case 11: |
13 |
|
if(!$modx->hasPermission('new_user')) { |
14 |
|
$modx->webAlertAndQuit($_lang["error_no_privileges"]); |
15 |
|
} |
16 |
|
break; |
17 |
|
default: |
18 |
|
$modx->webAlertAndQuit($_lang["error_no_privileges"]); |
19 |
|
} |
20 |
|
|
21 |
|
$user = isset($_REQUEST['id']) ? (int)$_REQUEST['id'] : 0; |
22 |
|
|
manager/actions/mutate_web_user.dynamic.php 1 location
|
@@ 6-19 (lines=14) @@
|
3 |
|
die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly.");
|
4 |
|
}
|
5 |
|
|
6 |
|
switch($modx->getManagerApi()->action) {
|
7 |
|
case 88:
|
8 |
|
if(!$modx->hasPermission('edit_web_user')) {
|
9 |
|
$modx->webAlertAndQuit($_lang["error_no_privileges"]);
|
10 |
|
}
|
11 |
|
break;
|
12 |
|
case 87:
|
13 |
|
if(!$modx->hasPermission('new_web_user')) {
|
14 |
|
$modx->webAlertAndQuit($_lang["error_no_privileges"]);
|
15 |
|
}
|
16 |
|
break;
|
17 |
|
default:
|
18 |
|
$modx->webAlertAndQuit($_lang["error_no_privileges"]);
|
19 |
|
}
|
20 |
|
|
21 |
|
$user = isset($_REQUEST['id']) ? (int)$_REQUEST['id'] : 0;
|
22 |
|
|