dave davidson
2005-Dec-14 14:16 UTC
[UserEngine] Configuring minimal access without logins
Hi, I''m playing around with the UserEngine for limiting access to my app and I like what I see so far. One question, however, I''d like to be able to set it up so that any user navigating to the site is automatically set as "anonymous" or some such access level with minimal permissions, without having to login. IOW, the login function should only be used by admins; normal users need not login to access the information inside. How could I accomplish this functionality? I tried in the "roles" page to uncheck the ''login'' box for the User role, thinking that it would remove the login page for that type of user, but then I was not able to log in at all with any account, even admin. Thanks in advance for any help.
Nathaniel S. H. Brown
2005-Dec-14 17:27 UTC
RE: [UserEngine] Configuring minimal access without logins
Hey Dave, There is a role called Guest which will do precisely what you are after. The bootstrap should have inserted three roles, if not try running it again and check your /role/ list while logged in as admin to see if it is there. It will not be available to users as it is intended for users with no username. -Nb ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Nathaniel S. H. Brown http://nshb.net ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~> -----Original Message----- > From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of > dave davidson > Sent: December 14, 2005 6:17 AM > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Subject: [Rails] [UserEngine] Configuring minimal access > without logins > > Hi, > > I''m playing around with the UserEngine for limiting access to > my app and I like what I see so far. One question, however, > I''d like to be able to set it up so that any user navigating > to the site is automatically set as "anonymous" or some such > access level with minimal permissions, without having to login. > > IOW, the login function should only be used by admins; normal > users need not login to access the information inside. How > could I accomplish this functionality? > > I tried in the "roles" page to uncheck the ''login'' box for > the User role, thinking that it would remove the login page > for that type of user, but then I was not able to log in at > all with any account, even admin. > > Thanks in advance for any help. > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
dave davidson
2005-Dec-14 18:52 UTC
Re: [UserEngine] Configuring minimal access without logins
Nathaniel S. H. Brown <nshb@...> writes:> The bootstrap should have inserted three roles, if not try running it again > and check your /role/ list while logged in as admin to see if it is there. > > It will not be available to users as it is intended for users with no > username.Brilliant, worked like a charm! Thanks much.