Giving access to specific templates to all users

Mehr
2 Jahre 5 Monate her #152487 von terryaulenbach
As far as I can tell, in Version 2.56.1+161118, access to specific templates has to be done on an individual basis. That is, I have to pull up a creator and give them access to templates individually. What I need to be able to do is select a template and give access to it to every user, current and future. Am I missing something? If not, I hope this feature will soon be added.

Terry

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

LimeSurvey Partners
Mehr
2 Jahre 3 Monate her #155675 von DenisChenu
You can use manual.limesurvey.org/BeforeHasPermission and always return true id objet=='template' and sPermission=='yourtemplate'.

You can send false for all other template ;)

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 .

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
7 Monate 6 Tage her #180470 von wilberth
I solved this with a database trigger. For each new user that is created the permission is given automatically. The following works for new users created with the LDAP plugin:

CREATE TRIGGER templatename AFTER INSERT ON users FOR EACH ROW INSERT INTO `permissions` (`uid`,`entity`,`permission`,`read_p`) VALUES (NEW.uid, 'template', 'templatename', 1);

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten

Abonnieren Sie unseren Newsletter

Abonnieren Sie unseren Newsletter für alle Neuigkeiten rund um LimeSurvey
captcha