用户可以同时访问旧的个人资料和新的个人资料吗?
我已经使用内容配置文件模块来制作配置文件的内容类型。然后我进入我的用户管理菜单 ->权限菜单并授予“testuser”角色访问权限,以便能够创建新的内容类型配置文件。现在,当具有该角色的用户登录并单击具有站点名/用户/用户名路径的“我的个人资料”时,他/她仍然会返回到旧的个人资料,而不是我创建的新内容类型。我做错了什么?我想要的只是具有“testuser”角色的用户拥有与标准用户不同的配置文件。我这是因为我的用户同时具有“标准用户”和“测试用户”角色?
I have used Content Profile Module to make a content type of profile. I have then gone to my User management menu -> Permissions menu and given access to the "testuser" role to be able to create the new content type profile. Now when the user with the role logs on and clicks on "My profile" that has a path of sitename/user/username, he/she still goes back to the old profile and not the new content type I created. What am i doing wrong? All I want is users with "testuser" role to have a separate profile than the standard user. I sthis because my user has both roles of "standard user" and "testuser" ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的。 Drupal 的访问系统是宽松的:如果任何用户的角色拥有权限,则该用户也将获得该权限。
听起来您还想将用户个人资料的默认选项卡设为您的新内容个人资料;如果是这种情况,请查看此解决方案: Drupal - 将“user/%/edit/uprofile”设置为“user/%/edit”上的默认选项卡
Yes. Drupal's access system is permissive: if any of a user's roles has a permission, the user will gain the permission as well.
It also sounds like you want to make the default tab for a user's profile to be your new content profile; if that's the case, check out this solution: Drupal - Set 'user/%/edit/uprofile' to default tab on 'user/%/edit'