Can I Lock surveys from accidental deletion?

More
2 months 3 days ago #191319 by BHS_Kez
Hello,

We have a few surveys that we always have running, these are primarily registration of interest surveys for our school.
In the past, we have had accidental deletions of these surveys which creates a lot of work for me to rebuild and attempt to recover applications/responses we hadn't downloaded prior to the accidental deletion.

Is there a way to lock specific surveys out so that you can't delete them without administrator approval?

I have looked in so many places and I can't find an option like that anywhere, am I missing something?

Thank you in advance.

Please Log in or Create an account to join the conversation.

LimeSurvey Partners
More
2 months 3 days ago #191322 by gabrieljenik
What about removing the delete permissions ?

Cheers,
Gabriel - www.Encuesta.Biz - Authorized Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?)....[img]

Please Log in or Create an account to join the conversation.

More
2 months 3 days ago #191323 by BHS_Kez
I can, but I was hoping for a quicker solution than going into each survey and removing the 'delete' permission for each user on each survey.

I guess that's the only way?

I was hoping for a way I could tick a selection of surveys and choose a lock option, so that even those that have permission to delete would need to enter admin credentials to delete it, making them double check what they're deleting is correct.

Please Log in or Create an account to join the conversation.

More
2 months 2 days ago #191337 by DenisChenu
You can create a sample plugin to disallow deletion for all user except some.
manual.limesurvey.org/BeforeHasPermission

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 .
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
2 months 2 days ago #191346 by fradeff
may I suggest just a simple old good backuping planning of the mysql db?
I have many ls, with crontabs running mysqldumps daily (turn every week), weekly (turn every month), monthly (turn every year) and yearly backup
with that quite simple system I was able to restore surveys that were sometime deleted even many months before I was alerted by the administrator of the survey
the only disagrement of this method is that I have to run the backup on a localhost instance of limesurvey, but as it is not a daily task it's ok like that
The following user(s) said Thank You: DenisChenu

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!