- Posts: 6
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Can I Lock surveys from accidental deletion?
- BHS_Kez
- Topic Author
- Offline
- New Member
Less
More
4 years 5 months ago #191319
by BHS_Kez
Can I Lock surveys from accidental deletion? was created 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.
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.
The topic has been locked.
- gabrieljenik
- Offline
- Official LimeSurvey Partner
Less
More
- Posts: 272
- Thank you received: 45
4 years 5 months ago #191322
by gabrieljenik
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Checkout our Reporting Solutions and our plugin shop at www.encuesta.biz .
Replied by gabrieljenik on topic Can I Lock surveys from accidental deletion?
What about removing the delete permissions ?
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Checkout our Reporting Solutions and our plugin shop at www.encuesta.biz .
The topic has been locked.
- BHS_Kez
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
4 years 5 months ago #191323
by BHS_Kez
Replied by BHS_Kez on topic Can I Lock surveys from accidental deletion?
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.
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.
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
4 years 4 months ago #191337
by DenisChenu
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.
Replied by DenisChenu on topic Can I Lock surveys from accidental deletion?
You can create a sample plugin to disallow deletion for all user except some.
manual.limesurvey.org/BeforeHasPermission
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 .
I don't answer to private message.
The topic has been locked.
- fradeff
- Offline
- Senior Member
Less
More
- Posts: 52
- Thank you received: 16
4 years 4 months ago #191346
by fradeff
Replied by fradeff on topic Can I Lock surveys from accidental deletion?
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
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
The topic has been locked.