mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
modificaciones en api.php
Former-commit-id: f46abc58c079fbe584d2bda12f44e3b09c1a4693
This commit is contained in:
parent
293b025c7f
commit
985726d5a2
@ -42,6 +42,7 @@ $other = parseOtherParameter($otherSerialize, $otherMode);
|
|||||||
$group_db = get_parameter('group_db', '');
|
$group_db = get_parameter('group_db', '');
|
||||||
$disable = get_parameter('disable', '');
|
$disable = get_parameter('disable', '');
|
||||||
$id_up = get_parameter('id_up', '');
|
$id_up = get_parameter('id_up', '');
|
||||||
|
$id_profile = get_parameter('id_profile', '');
|
||||||
$apiPassword = io_output_password(db_get_value_filter('value', 'tconfig', ['token' => 'api_password']));
|
$apiPassword = io_output_password(db_get_value_filter('value', 'tconfig', ['token' => 'api_password']));
|
||||||
|
|
||||||
$correctLogin = false;
|
$correctLogin = false;
|
||||||
@ -195,7 +196,7 @@ if ($correctLogin) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$id_os = api_set_delete_user_profiles($user_db, $group_db);
|
$id_os = api_set_delete_user_profiles($user_db, $id_up);
|
||||||
|
|
||||||
if ($id_os != 100) {
|
if ($id_os != 100) {
|
||||||
return;
|
return;
|
||||||
@ -224,7 +225,7 @@ if ($correctLogin) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$id_os = api_set_add_permisson_user_to_group($returnType, $user_db, $group_db, $id_up);
|
$id_os = api_set_add_permission_user_to_group($returnType, $user_db, $group_db, $id_up, $id_profile);
|
||||||
|
|
||||||
if ($id_os != 100) {
|
if ($id_os != 100) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user