From ad673b3207506de03ee8e745399e3a19505900d2 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 8 Sep 2022 14:16:21 +0200 Subject: [PATCH] Fix perm --- htdocs/recruitment/recruitmentindex.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/htdocs/recruitment/recruitmentindex.php b/htdocs/recruitment/recruitmentindex.php index f028f2f8243..83101d6f31e 100644 --- a/htdocs/recruitment/recruitmentindex.php +++ b/htdocs/recruitment/recruitmentindex.php @@ -46,6 +46,14 @@ if (isset($user->socid) && $user->socid > 0) { $max = 5; $now = dol_now(); +// Security check (enable the most restrictive one) +//if ($user->socid > 0) accessforbidden(); +//if ($user->socid > 0) $socid = $user->socid; +// if (! $user->hasRights('mymodule', 'myobject', 'read')) { +// accessforbidden(); +// } +restrictedArea($user, 'recruitment', 0, 'recruitment_recruitmentjobposition', 'recruitmentjobposition', '', 'rowid'); + /* * Actions