用户可以同时访问旧的个人资料和新的个人资料吗?

发布于 2024-09-13 07:11:32 字数 238 浏览 6 评论 0原文

我已经使用内容配置文件模块来制作配置文件的内容类型。然后我进入我的用户管理菜单 ->权限菜单并授予“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 技术交流群。

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

发布评论

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

评论(1

爱你是孤单的心事 2024-09-20 07:11:32

是的。 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'

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