Error with cherry-pick, upload other change of push '8798d94'
This commit is contained in:
parent
8798d946e3
commit
40c7c3b967
|
@ -35,7 +35,13 @@ $id_networkmap = get_parameter ('id_networkmap', 0);
|
|||
$delete_networkmap = get_parameter ('delete_networkmap', 0);
|
||||
|
||||
if ($delete_networkmap) {
|
||||
$result = networkmap_delete_networkmap($id_networkmap);
|
||||
if (check_acl ($config['id_user'], 0, "RW")) {
|
||||
$result = networkmap_delete_user_networkmap($id_networkmap);
|
||||
}else{
|
||||
if (check_acl ($config['id_user'], 0, "RM")) {
|
||||
$result = networkmap_delete_networkmap($id_networkmap);
|
||||
}
|
||||
}
|
||||
$message = ui_print_result_message ($result,
|
||||
__('Network map deleted successfully'),
|
||||
__('Could not delete network map'), '', true);
|
||||
|
|
Loading…
Reference in New Issue