Fix bad permission check

This commit is contained in:
Laurent Destailleur 2021-02-14 21:56:15 +01:00
parent 4a35600e62
commit 3e41f69d3d

View File

@ -58,7 +58,8 @@ $permissiontoedit = $user->rights->adherent->cotisation->creer; // Used by the i
$hookmanager->initHooks(array('subscriptioncard', 'globalcard'));
// Security check
$result = restrictedArea($user, 'subscription', $id, '', '', 'socid', 'rowid');
$result = restrictedArea($user, 'subscription', 0); // TODO Check on object id
/*
* Actions