Commit 62544701 authored by Chenu Denis's avatar Chenu Denis
Browse files

[fix] Still multiple call of token data

parent 2929ce1e
......@@ -6,7 +6,7 @@
* @author Denis Chenu <denis@sondages.pro>
* @copyright 2022 Denis Chenu <http://www.sondages.pro>
* @license AGPL v3
* @version 5.4.4
* @version 5.4.6
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
......@@ -175,6 +175,9 @@ class TokenReloadInstance
if ($tokenManaged) {
if (is_null($this->allowedSridList)) {
$this->allowedSridList = \TokenUsersListAndManagePlugin\Utilities::getAllowedSridList($this->surveyid, $this->token);
if(is_null($this->allowedSridList)) {
$this->allowedSridList = false;
}
}
/* getAllowedSridList return false or null if not checked, array if checked */
if (is_array($this->allowedSridList) && !in_array($oResponse->id, $this->allowedSridList)) {
......
......@@ -8,7 +8,7 @@
<author>Denis Chenu</author>
<authorUrl>https://extensions.sondages.pro/reloadanyresponse</authorUrl>
<supportUrl>https://support.sondages.pro/</supportUrl>
<version>5.4.5</version>
<version>5.4.6</version>
<license>GNU Affero General Public License v3.0</license>
<description><![CDATA[Allow to reload any response for admin user and respondant.]]></description>
</metadata>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment