Error with cherry-pick, upload other change of push '8798d94'

This commit is contained in:
m-lopez-f 2015-01-15 16:26:16 +01:00
parent 8798d946e3
commit 40c7c3b967
1 changed files with 7 additions and 1 deletions

View File

@ -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);