Drupal 7:通过路径限制访问
我需要限制我网站的各个部分。我想通过限制对各种子路径的访问来做到这一点。路径访问模块实际上并不执行此操作。
您能否建议任何允许限制类似以下内容的机制:
members-area/editors/* 仅限具有“编辑”角色的用户。
也许有办法通过规则来做到这一点?我试过了,但找不到。
谢谢
I need to restrict various sections of my site. I would like to do this by restricting access to various subpaths. The Path Access module doesn't actually do this.
Can you suggest any mechanism that would allow for the restriction of something like:
members-area/editors/*
restricted to only users with 'editor' role.
Maybe there's a way to do this with rules? I've tried, but can't find one.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
为此,您需要一个自定义模块,这并不太困难。这将是它的关键:
You'll need a custom module for this, it's not too difficult. This would be the crux of it:
http://drupal.org/project/path_access
http://drupal.org/project/path_access