« Return to Thread: Protecting views to allow anonymous access only

Protecting views to allow anonymous access only

by Andreas Kaiser-3 :: Rate this Message:

Reply to Author | View in Thread

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello cavemen!


I'm in the progress of developing my first Grok application, so please
be patient with me and my maybe stupid questions.

Right now I'm stuck with this…

I need to protect a view, so that it can be accessed *only* by
anonymous users.

I know:

~  - how to protect a view with e.g.
~    grok.require('my.CustomPermission')

~  - how to create a custom role

~  - how to gather permissions in this role

I don't know:

~  - how to grant my role to the anonymous user

Any pointers would be appreciated.


TIA,

Andreas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIiFfC/IUfrcGW134RAo2pAKCfLvLhH8vvYV6SBDbHa9gzwvyj/gCgqsvs
FNzaYmPTQIDa5WVx3IPcKjY=
=8ob1
-----END PGP SIGNATURE-----
_______________________________________________
Grok-dev mailing list
Grok-dev@...
http://mail.zope.org/mailman/listinfo/grok-dev

 « Return to Thread: Protecting views to allow anonymous access only

LightInTheBox - Buy quality products at wholesale price!