fix warning
This commit is contained in:
parent
d45052a6b7
commit
9ca8dfcef9
@ -51,14 +51,14 @@ $confirm = GETPOST('confirm', 'alpha');
|
|||||||
|
|
||||||
$chartofaccounts = GETPOST('chartofaccounts', 'int');
|
$chartofaccounts = GETPOST('chartofaccounts', 'int');
|
||||||
|
|
||||||
$permissiontoadd = $user->rights->accounting->chartofaccount;
|
$permissiontoadd = !empty($user->rights->accounting->chartofaccount);
|
||||||
$permissiontodelete = $user->rights->accounting->chartofaccount;
|
$permissiontodelete = !empty($user->rights->accounting->chartofaccount);
|
||||||
|
|
||||||
// Security check
|
// Security check
|
||||||
if ($user->socid > 0) {
|
if ($user->socid > 0) {
|
||||||
accessforbidden();
|
accessforbidden();
|
||||||
}
|
}
|
||||||
if (!$user->rights->accounting->chartofaccount) {
|
if (empty($user->rights->accounting->chartofaccount)) {
|
||||||
accessforbidden();
|
accessforbidden();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user