Commit ad53db2d authored by Denis Chenu's avatar Denis Chenu

[fix] Don't broke other plugins newDirectRequest call

parent 8d983006
......@@ -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'))
......
Markdown is supported
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