diff --git a/html/export.php b/html/export.php index d32bc4975..9b5044c2c 100644 --- a/html/export.php +++ b/html/export.php @@ -50,6 +50,7 @@ if ( $action=='X' || $g_user->check_print($action)==0 ) $prfile=$cn->get_value("select me_file from menu_ref where me_code=$1",array($action)); if ( $prfile == "") { + print $action; die (_('Export impossible')); } require_once NOALYSS_INCLUDE."/export/$prfile"; diff --git a/include/action.common.inc.php b/include/action.common.inc.php index 33904ec76..257915c3e 100644 --- a/include/action.common.inc.php +++ b/include/action.common.inc.php @@ -209,9 +209,11 @@ if ($sub_action == 'detail') $act->ag_id = $ag_id; echo $act->get(); } + if ($g_user->can_write_action($ag_id) == true) { + echo '