Rails authlogic:如何制作关卡?

发布于 2024-08-31 08:43:37 字数 194 浏览 4 评论 0原文

我按照本教程设置正确设置 Autlogic。因此,我的网站需要一种级别形式,例如“管理员”、“版主”、“用户”、“访客”。因此,管理员可以做所有事情,而版主可能无法进行网站更改。用户不能销毁、更新或创建。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

腻橙味 2024-09-07 08:43:37

您需要一个授权框架,例如 cancandeclarative_authorization 为此。

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

悲喜皆因你 2024-09-07 08:43:37

您可以使用 Authlogic、Facebook Connect、declarative_authorization 和用户间消息传递查看我的示例项目。

http://github.com/jspooner/authlogic_cucumber_rspec_example

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文