Rails authlogic : How to make Levels?
-
02-10-2019 - |
Pergunta
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.
Solução
You need an authorization framework like cancan or declarative_authorization for that.
Outras dicas
You can check out my example project with Authlogic, Facebook Connect, declarative_authorization and user to user messaging.
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow