Welcome to the LimeSurvey Community Forum

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

access restrictions to replies

  • Micha_Malina
  • Micha_Malina's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 month 4 weeks ago #257020 by Micha_Malina
access restrictions to replies was created by Micha_Malina
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.3
Own server or LimeSurvey hosting: Own
Survey theme/template: Own
==================
Hello everyone,

I am currently working on a Limesurvey project on the topic of evaluations. However, for privacy reasons, we need to make sure that certain users (the creators or initiators of surveys) can start surveys, but should not have direct access to the individual responses. Our aim is to protect the confidentiality of participants' responses. 

Is anyone here dealing with a similar requirement? I'm looking for advice or examples of how to effectively implement such access restrictions. If you have an idea for a solution, I'd love to hear about it.

Thank you in advance for your help!
 

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 month 4 weeks ago - 1 month 4 weeks ago #257023 by holch
Replied by holch on topic access restrictions to replies
This question (or a very, very similar question) has been answered in the last couple of weeks. Have a search in the forum.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Last edit: 1 month 4 weeks ago by holch.

Please Log in to join the conversation.

  • Micha_Malina
  • Micha_Malina's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 month 4 weeks ago #257027 by Micha_Malina
Replied by Micha_Malina on topic access restrictions to replies
Thanks for the quick reply.
I've spent a lot of time searching the forum over the last few days, but I haven't found any idea how someone can design and launch a poll without having access to the answers. What would be the keyword I could search for, if you remember? Maybe I'm just overlooking it.

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 month 4 weeks ago #257031 by holch
Replied by holch on topic access restrictions to replies
I think the user wanted to delete responses from Limesurvey and only send them via email to a specific contact.

From there the discussion went deeper in different directions, if I remember right.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 month 3 weeks ago #257530 by DenisChenu
Replied by DenisChenu on topic access restrictions to replies
Create a plugin using beforeHasPermission event : always send false for all response permission.

But a question :  make a questionnaire if no one can access the answers.

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.

Please Log in to join the conversation.

  • Micha_Malina
  • Micha_Malina's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 month 3 weeks ago #257537 by Micha_Malina
Replied by Micha_Malina on topic access restrictions to replies
no, different background. in itself, a plugin would be great where I don't set the answers and statistics to load when answers are available, but when the user is superadmin (or similar). In the case of evaluations, not research, it is important for data protection reasons that the user can design and initiate the evaluation, but cannot view the individual responses.

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 month 3 weeks ago #257538 by DenisChenu
Replied by DenisChenu on topic access restrictions to replies

no, different background. in itself, a plugin would be great where I don't set the answers and statistics to load when answers are available, but when the user is superadmin (or similar).
 
Then a plugin seems the best solution, not too complex here : just send false for responses and statictics

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.

Please Log in to join the conversation.

  • Micha_Malina
  • Micha_Malina's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 month 3 weeks ago #257551 by Micha_Malina
Replied by Micha_Malina on topic access restrictions to replies
not to complex sounds good. I might start thinking about it again. Just looking for the fitting position in the code, for example, will probably take

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 month 3 weeks ago #257554 by holch
Replied by holch on topic access restrictions to replies

not to complex sounds good.


Handle this with care.

If Denis says "not too complex" I would assume that it is fairly complex for "normal" people. Denis is not "normal" as in he is one of the most experienced developers of Limesurvey plugins, just as background info. :-)

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Please Log in to join the conversation.

  • Micha_Malina
  • Micha_Malina's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 month 3 weeks ago - 1 month 3 weeks ago #257558 by Micha_Malina
Replied by Micha_Malina on topic access restrictions to replies
 I know him and his work (would buy a fan shirt). And I guess having him write the plugin is cheaper than paying me to find the solution myself
Last edit: 1 month 3 weeks ago by Micha_Malina.

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 month 3 weeks ago #257717 by DenisChenu
Replied by DenisChenu on topic access restrictions to replies
The idea  :

Create a plugin just for beforeHasPermission
1. register to beforeHasPermission with beforeGlobalPermission
2. in beforeGlobalPermission : unregister to beforeHasPermission (or check DB directly)
3. If true : set havePermission static variable to true
4. register to beforeHasPermission with beforeSurveyGroupPermission  and beforeFinalObjectPermission
5. in beforeSurveyGroupPermission : unregister to beforeHasPermission (or check DB directly)
6. If true : set havePermission static variable to true
7. register to beforeHasPermission with beforeObjectPermission
8. in beforeObjectPermission : check if it's survey and reponse or statitics
9. If yes : return false
10. If  not : return true if havePermission static variable is true
11. return value if havePermission static variable is not true

Maybe we can avoid the double test on beforeSurveyGroupPermission, because both can return false for response and statitics.

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.

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose