문제

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.

도움이 되었습니까?

해결책

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

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top