Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
SondagesPro-LimeSurvey-plugin
recomputeExpression
Commits
ad53db2d
Commit
ad53db2d
authored
Jun 06, 2019
by
Denis Chenu
Browse files
[fix] Don't broke other plugins newDirectRequest call
parent
8d983006
Changes
1
Hide whitespace changes
Inline
Side-by-side
recomputeExpression.php
View file @
ad53db2d
...
...
@@ -4,10 +4,10 @@
* purpose is to offer abilty to recompute all expression in a survey
*
* @author Denis Chenu <denis@sondages.pro>
* @copyright 2013 Denis Chenu <http://sondages.pro>
* @copyright 2013
-2019
Denis Chenu <http://sondages.pro>
* @copyright 2013 Practice Lab <https://www.practicelab.com/>
* @license GPL v3
* @version 2.0.
3
* @version 2.0.
4
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -80,6 +80,9 @@ class recomputeExpression extends PluginBase
}
public
function
newDirectRequest
()
{
if
(
$this
->
getEvent
()
->
get
(
'target'
)
!=
get_class
(
$this
))
{
return
;
}
$oEvent
=
$this
->
event
;
$bAllowNonAdmin
=
$this
->
get
(
'bAllowNonAdmin'
);
if
(
!
$bAllowNonAdmin
&&
!
$this
->
api
->
checkAccess
(
'administrator'
))
...
...
Write
Preview
Markdown
is supported
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