Hello everybody, and thanks a lot for yours contributions !
DenisChenu, your proposal seems the best on my point of view.
I find out that using the "plugin way" to customize LS is really a quick and easy way.
I even found a post where you put a plugin code (
forums.limesurvey.org/forum/french-forum...dmin-par-utilisateur
)...
But I was not able to use the beforeHasPermission method. When I tried I just retrieved a 'superadmin' and 'survey' values for the $event array and not the ones I was expecting for... I should have missed something.
Anyway I just used 'beforeSurveyActivate' (for the main stuff) and 'beforeDeactivate' (to forbid plugin deactivation) and this seems to do the job.
Unfortunately, now I have not the time to explore and play with those elements due to the C19 crisis, but I will be back as soon as possible to practice them !
thanks again and have a very nice day.
@holch
hey, do you know any administrator that can trust his/her users ? And, by the way, do you always trust big corpos and govs ?
The "redirection" proposals (paloalto, htaccess apache...) where not as solid as the plugin is because they trick the web habits and still left open some misuses (and are much more annoying to maintain !)
bye