Author: danydb
Date: 2013-12-21 03:28:00 +0100 (Sat, 21 Dec 2013)
New Revision: 5614
Modified:
phpcompta/trunk/include/class_acc_ledger.php
Log:
task #952 Transforme une action en facture
Ajout s?\195?\169curit?\195?\169 : v?\195?\169rifie que l'action est accessible
?\195?\160 l'utilisateur
Task #952 - Transform une action en facture
Modified: phpcompta/trunk/include/class_acc_ledger.php
===================================================================
--- phpcompta/trunk/include/class_acc_ledger.php 2013-12-21 02:23:44 UTC
(rev 5613)
+++ phpcompta/trunk/include/class_acc_ledger.php 2013-12-21 02:28:00 UTC
(rev 5614)
@@ -3679,8 +3679,9 @@
}
function convert_from_follow($p_ag_id)
{
+ global $g_user;
if (isNumber($p_ag_id)==0) return null;
-
+ if (! $g_user->can_read_action($p_ag_id)) die ('Action non
accessible');
$array=array();
// retrieve info from action_gestion
---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu
_______________________________________________
Phpcompta est un logiciel libre de comptabilité en ligne
(http://www.phpcompta.eu)
Phpcompta-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/phpcompta-dev