0000696: Additional permission level for other user's transactions edition.
[fa-stable.git] / purchasing / supplier_credit.php
index e4805768230b53374c9aa4566b118ba7f3e63996..fdd04dd912666520fb366e00f4d467285754abb7 100644 (file)
@@ -31,7 +31,7 @@ if ($use_date_picker)
 check_db_has_suppliers(_("There are no suppliers defined in the system."));
 
 if (isset($_GET['ModifyCredit']))
-       check_is_closed(ST_SUPPINVOICE, $_GET['ModifyCredit']);
+       check_is_editable(ST_SUPPINVOICE, $_GET['ModifyCredit']);
 
 //---------------------------------------------------------------------------------------------------