goBack(); } }else{ $error_msg .= "Error updating Project!\n"; debug_message($project->getLastError()); } } }else if($_REQUEST['mode'] == 'delete'){ $title = "Delete Project"; $project->id = $_REQUEST['id']; //Make sure the user is allowed to delete this if(!$project->hasRights(PROJECT_RIGHT_FULL)){ fatal_error('Insufficent access rights for this project!'); }else{ if($project->delete($_REQUEST['id'])){ goBack(); }else{ $error_msg .= "Error deleting Project!\n"; debug_message($project->getLastError()); } } }else if($_REQUEST['mode'] == 'delete_right'){ $title = "Delete User Right"; $project->get($_REQUEST['id']); //Make sure the user is allowed to delete if(!$project->hasRights(PROJECT_RIGHT_FULL)){ fatal_error('Insufficent access rights for this project!'); }else{