views:

241

answers:

2

Hello, i followed this tutorial fo setting Autlogic up properly. So, my site needs a form of level, like "Admin", "Moderator", "User", "Guest". So Admins can do everything, where Moderators may not can make site changes. And Users can't destroy, Update or Create.

I've have googled a bit.. But nothing found, so i thought you guys might can help me out?

Thank you.

+4  A: 

You need an authorization framework like cancan or declarative_authorization for that.

jpartogi
Hey, i got Authlogic? Isn't that a authorization framework?
Oluf Nielsen
Just read about it.. My fail, sorry. Thank you for your help ;)!
Oluf Nielsen
Authlogic is only for authentication. You need an authorization framework to do what you want.
jpartogi
A: 

You can check out my example project with Authlogic, Facebook Connect, declarative_authorization and user to user messaging.

http://github.com/jspooner/authlogic_cucumber_rspec_example

jspooner