Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

beforePermissionSetSave, no dispatchEvent?

More
2 years 6 months ago #205128 by Jmantysalo
Can someone confirm? In application/models/Permission.php there is
Code:
$event = new \LimeSurvey\PluginManager\PluginEvent('getGlobalBasePermissions');
$result = App()->getPluginManager()->dispatchEvent($event);

but
Code:
$oEvent = new \LimeSurvey\PluginManager\PluginEvent('beforePermissionSetSave');

has no corresponding dispatchEvent.

Note: If I asked something and forgot to say version, I am using LS 5.x.
The topic has been locked.
More
2 years 6 months ago #205131 by DenisChenu
Yiou can just create a sample plugin and report the issue ?

Else : please give code link …

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
More
2 years 6 months ago #205132 by Jmantysalo

DenisChenu wrote: Else : please give code link …


github.com/LimeSurvey/LimeSurvey/blob/ma.../Permission.php#L262

Contains creation of oEvent-variable that is sent nowhere.

Note: If I asked something and forgot to say version, I am using LS 5.x.
The following user(s) said Thank You: DenisChenu
The topic has been locked.
More
2 years 6 months ago #205147 by DenisChenu

Jmantysalo wrote:

Code:
$oEvent = new \LimeSurvey\PluginManager\PluginEvent('beforePermissionSetSave');

has no corresponding dispatchEvent.

I confirm :)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
More
2 years 6 months ago #205148 by Jmantysalo
OK, I made a bug report: bugs.limesurvey.org/view.php?id=16662

Note: If I asked something and forgot to say version, I am using LS 5.x.
The following user(s) said Thank You: DenisChenu
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose