From a964a881fe0e01fdcf0503ad622bcbb6ded8d748 Mon Sep 17 00:00:00 2001 From: Ryan Mathis Date: Wed, 13 Apr 2022 10:09:14 -0700 Subject: [PATCH] Added CSRF tokens to JS --- Model/GrouperGroup.php | 6 ++ View/Elements/Components/subscriberList.ctp | 69 +++++++++++++++------ 2 files changed, 56 insertions(+), 19 deletions(-) diff --git a/Model/GrouperGroup.php b/Model/GrouperGroup.php index 980259f..6021305 100644 --- a/Model/GrouperGroup.php +++ b/Model/GrouperGroup.php @@ -102,6 +102,12 @@ public function isUserOwner(string $userId) } } + public function beforeFilter() + { + $this->Security->csrfUseOnce = false; + // ... + } + /** * Used to instantiate API class * diff --git a/View/Elements/Components/subscriberList.ctp b/View/Elements/Components/subscriberList.ctp index 34cefb2..3e3f80c 100644 --- a/View/Elements/Components/subscriberList.ctp +++ b/View/Elements/Components/subscriberList.ctp @@ -16,24 +16,30 @@

There was an error retrieving the subscribers.