Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails authlogic : How to make Levels?

I followed this tutorial for 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.

like image 753
Oluf Nielsen Avatar asked May 02 '10 07:05

Oluf Nielsen


2 Answers

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

like image 127
Joshua Partogi Avatar answered Nov 15 '22 07:11

Joshua Partogi


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

like image 35
jspooner Avatar answered Nov 15 '22 08:11

jspooner