Security access

This commit is contained in:
Alexandre SPANGARO 2020-09-08 04:58:25 +02:00
parent a4c581b34d
commit df7ca14b2c

View File

@ -44,6 +44,8 @@ $cancel = GETPOST('cancel', 'alpha');
$accountingaccount = GETPOST('accountingaccount', 'alpha');
// Security check
if ($user->socid > 0) accessforbidden();
if (!$user->rights->accounting->chartofaccount) accessforbidden();
$object = new AccountingAccount($db);