Author
|
Message
|
David Santiso
|
Saturday 15 January 2011 11:10:43 am
Hi, I've created a new class. This class has some field data collectors (it's a form). I have not added any type of permission, but anonymous users can view and send this form. I would like that only members may submit this form. How I can do? Thank you very much, David
|
Andrew Wigglesworth
|
Saturday 15 January 2011 11:34:45 am
You need to go into the "User Accounts" tab on the administration side and edit the "roles and policies" for anonymous users. As a default they get to see (read) all content in "Section (standard)". You need to edit that policy so that they can only read what you want them to. ie. choose everything other than your new class.
|
Andrew Wigglesworth
|
Saturday 15 January 2011 11:48:05 am
Oh, other ways ... you could put the form in the "restricted" section, or maybe wrap the form part of the template in an {if} routine that checks whether the user is logged in. See the one used for checking user logins for comments. Though, with wrapping the form in an {if} statement, I wonder whether there would be a slight risk of someone who knows the form field names posting the info anyway ... someone else will have to answer that one.
|
David Santiso
|
Saturday 15 January 2011 12:11:16 pm
I had thought the first option, but I didn't like. I like the second option, I'll try it. Thaks, David
|
David Santiso
|
Saturday 15 January 2011 1:26:54 pm
When I add content, I select restricted section, but is added in standard.
|
David Santiso
|
Saturday 15 January 2011 1:34:12 pm
I had not set either the section. Now it works as I want. Thank you very much ;)
|
David Santiso
|
Sunday 16 January 2011 2:50:23 am
It seems that the restricted section is only for admin users. :S
|
Carlos Revillo
|
Sunday 16 January 2011 11:06:38 pm
You mean you only have access with admin users? well, this is how it works by default, but you can configure roles to let other type of users work with that section.
|
David Santiso
|
Monday 17 January 2011 10:41:33 am
In the end I've removed permission to the role "anonymous users". Thank you very much ;)
|