Merge pull request #22938 from Daviid-P/15.0

FIX Broken Permissions check, $object is null.
This commit is contained in:
Laurent Destailleur 2022-11-23 12:22:21 +01:00 committed by GitHub
commit fb3bbee0a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,7 @@ if ($sortfield == "") {
$sortfield = "pl.fk_soc";
}
$type = $object->type;
if ($type == 'bank-transfer') {
$result = restrictedArea($user, 'paymentbybanktransfer', '', '', '');
} else {