From d92e17aabd04805c2d38d6aef05582427b6a6598 Mon Sep 17 00:00:00 2001 From: abb Date: Fri, 12 Feb 2021 19:21:26 +0100 Subject: [PATCH] new : hook context subscriptioncard and restrictedArea block for subscriptions --- htdocs/adherents/subscription/card.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/htdocs/adherents/subscription/card.php b/htdocs/adherents/subscription/card.php index 1be08bb5b34..d4396cefb00 100644 --- a/htdocs/adherents/subscription/card.php +++ b/htdocs/adherents/subscription/card.php @@ -55,6 +55,10 @@ $permissionnote = $user->rights->adherent->cotisation->creer; // Used by the inc $permissiondellink = $user->rights->adherent->cotisation->creer; // Used by the include of actions_dellink.inc.php $permissiontoedit = $user->rights->adherent->cotisation->creer; // Used by the include of actions_lineupdonw.inc.php +$hookmanager->initHooks(array('subscriptioncard', 'globalcard')); + +// Security check +$result = restrictedArea($user, 'subscription', $id, '', '', 'socid', 'rowid'); /* * Actions