没有新的用户组的退缩访问访问产品的访问

发布于 2025-02-03 15:19:39 字数 1009 浏览 3 评论 0原文

我创建了一个新的用户组,但我正在尝试查看产品节点,但我没有读写的许可。

“向后图像”

我试图使用它添加权限,但行不通。

$START_USERRIGHTS; ; ; ; ; ; ; ; ;
Type      ; UID             ; MemberOfGroups ; Password ; Target          ; read ; change ; create ; remove ; change_perm
UserGroup ; xxxxxxxxxxxRole ;                ;          ;                 ;      ;        ;        ;        ;
          ;                 ;                ;          ; Category        ; +    ; +      ; +      ; +      ;
          ;                 ;                ;          ; Product         ; +    ; +      ; +      ; +      ;
          ;                 ;                ;          ; BaseStore       ; +    ; +      ; +      ; +      ;
          ;                 ;                ;          ; CronJob         ; +    ; +      ; +      ; +      ;
          ;                 ;                ;          ; Job             ; +    ; +      ; +      ; +      ;
$END_USERRIGHTS; ; ; ; ;

I created a new usergroup but i'm trying to view the product node and i dont have permisions for read and write that.

image of backoffice

I tried to add permissions using this but is not working.

$START_USERRIGHTS; ; ; ; ; ; ; ; ;
Type      ; UID             ; MemberOfGroups ; Password ; Target          ; read ; change ; create ; remove ; change_perm
UserGroup ; xxxxxxxxxxxRole ;                ;          ;                 ;      ;        ;        ;        ;
          ;                 ;                ;          ; Category        ; +    ; +      ; +      ; +      ;
          ;                 ;                ;          ; Product         ; +    ; +      ; +      ; +      ;
          ;                 ;                ;          ; BaseStore       ; +    ; +      ; +      ; +      ;
          ;                 ;                ;          ; CronJob         ; +    ; +      ; +      ; +      ;
          ;                 ;                ;          ; Job             ; +    ; +      ; +      ; +      ;
$END_USERRIGHTS; ; ; ; ;

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

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

发布评论

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

评论(2

迷爱 2025-02-10 15:19:39

简单的用户组不受退缩的尊重,以支持此创建新的退缩角色。

向后序是用户组的扩展,该扩展用于限制向后的访问(即UI配置上下文定义了一个名为principal的维度,该维度实际上完全在向后级别上使用)。它还介绍了一个称为“当局”的属性,该属性扩展了限制可能性(即窗口小部件访问仅限于指定的当局) - 用户目前只能使用一个角色,但不同的角色可能具有相同的当局。

然后,您不能使用简单的用户组 - 向后不会尊重它。

下面您可能会找到限制功能的示例:

<context type="Product" component="myComponent" principal="user1">
     ...
 </context>
 <context type="Product" component="myComponent" principal="backofficeRole1">
     ...
 </context>
 <widget id="someWidget" widgetDefinitionId="com.hybris.someWidget"
 access="backofficeRole1" />
 <widget id="someWidget" widgetDefinitionId="com.hybris.someWidget"
 access="authority1" />

Simple UserGroup is not respected by backoffice ,to support this create new backoffice role.

A BackofficeRole is an extension of UserGroup that is meant to be used for restricting access in Backoffice (i.e. UI configuration context defines an dimension called principal which actually work exactly on BackofficeRoles). It also introduces an attribute called authorities which extends restriction possibilities (i.e. widget access may be restricted only to specified authorities) - user may use only one role at the moment, but different roles may have same authorities.

You cannot use simple UserGroup then - it will not be respected by Backoffice.

Below you may find examples of restriction capabilities:

<context type="Product" component="myComponent" principal="user1">
     ...
 </context>
 <context type="Product" component="myComponent" principal="backofficeRole1">
     ...
 </context>
 <widget id="someWidget" widgetDefinitionId="com.hybris.someWidget"
 access="backofficeRole1" />
 <widget id="someWidget" widgetDefinitionId="com.hybris.someWidget"
 access="authority1" />
撑一把青伞 2025-02-10 15:19:39

新的UserGroup NewUserGroup应给予读取访问(甚至是必需(如果需要的(如果需要))),则应对ProductCatalogversion,该组成员能够查看(阅读) )该目录版本的产品详细信息(上演或在线等等)。

这是iMpex的一个示例,可以给出newuserGroup读取访问并写入 xyz_productcatalog

INSERT_UPDATE CatalogVersion; catalog(id)[unique = true]; version[unique = true]; readPrincipals(uid)[mode = append]; writePrincipals(uid)[mode = append]
                            ; XYZ_ProductCatalog        ; Staged                ; newUserGroupUID                   ; newUserGroupUID
                            ; XYZ_ProductCatalog        ; Online                ; newUserGroupUID                   ; newUserGroupUID

您可以修改上述备件以适合您的用例。

The new usergroup newUserGroup should be given a read access (or even a write access if required) to the productCatalogVersion in which the members of that group will be able to view (read) the products details of that catalog version (Staged or Online, etc ..)

Here is an example of impex to give newUserGroup read access and write access to XYZ_ProductCatalog

INSERT_UPDATE CatalogVersion; catalog(id)[unique = true]; version[unique = true]; readPrincipals(uid)[mode = append]; writePrincipals(uid)[mode = append]
                            ; XYZ_ProductCatalog        ; Staged                ; newUserGroupUID                   ; newUserGroupUID
                            ; XYZ_ProductCatalog        ; Online                ; newUserGroupUID                   ; newUserGroupUID

You may modify the above impex to suit your use case.

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