Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Menu
Open sidebar
SondagesPro
coreAndTools
reloadAnyResponse
Commits
62544701
Commit
62544701
authored
Jun 17, 2022
by
Chenu Denis
Browse files
[fix] Still multiple call of token data
parent
2929ce1e
Changes
2
Hide whitespace changes
Inline
Side-by-side
TokenReloadInstance.php
View file @
62544701
...
...
@@ -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
))
{
...
...
config.xml
View file @
62544701
...
...
@@ -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>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment