启用/禁用b2bunit的权限

问题描述

我希望新创建的用户(不属于admingroup)具有从editorareaactions启用/禁用b2bunit的权限-参见图片(我对b2bcustomer有同样的问题)。已经对我的用户组具有此权限:

    $start_USERRIGHTS
                Type;UID;MemberOfGroups;Password;Target;read;change;create;delete;change_perm
                UserGroup;myGroup;;
                ;;;;AbstractComment;+;+;+;+;
                ;;;;AbstractOrder;+;;;;
                ;;;;AbstractOrderEntry;+;;;;
                ;;;;Address;+;+;+;+;
                ;;;;ArticleText;+;+;+;+;
                ;;;;B2BBudget;+;+;+;+;
                ;;;;B2BCostCenter;+;+;+;+;
                ;;;;B2BCustomer;+;+;+;+;-
                ;;;;B2BCustomerPunchOutCredentialMapping;+;+;+;+;
                ;;;;B2BPermission;+;+;+;+;
                ;;;;B2BUnit;+;+;+;+;
                ;;;;B2BUserGroup;+;+;+;+;
                ;;;;BackofficeSavedQuery;+;+;+;+;
                ;;;;BaseStore;+;-;-;-;
                ;;;;Cart;+;;;;
                ;;;;CartEntry;+;;;;
                ;;;;Catalog;+;;;;
                ;;;;CatalogVersion;+;;;;
                ;;;;Category;+;+;+;+;
                ;;;;CheckBoxFormField;+;+;+;+;
                ;;;;ClassificationAttributeUnit;+;;;;
                ;;;;CMSItem;+;-;-;-;
                ;;;;CMSSite;+;-;-;-;
                ;;;;Comment;+;+;+;+;
                ;;;;CompanyCodeAssignment;+;-;-;-;
                ;;;;Component;+;;;;
                ;;;;CommentType;+;;;;
                ;;;;CommentUserSetting;+;+;+;+;
                ;;;;CommentMetadata;+;+;+;+;
                ;;;;Consignment;+;;;;
                ;;;;ConsignmentEntry;+;;;;
                ;;;;CronJob;+;+;+;;
                ;;;;DateTimeFormField;+;+;+;+;
                ;;;;Domain;+;;;;
                ;;;;DropdownElement;+;+;+;+;
                ;;;;DropdownFormField;+;+;+;+;
                ;;;;Employee;+;-;-;-;
                ;;;;FormConfiguration;+;+;+;+;
                ;;;;FormFieldLabel;+;+;+;+;
                ;;;;Item;+;+;+;+;
                ;;;;ItemSyncTimestamp;+;;;;
                ;;;;Job;+;+;+;;
                ;;;;JobLog;+;+;+;+;
                ;;;;CronJobHistory;+;+;+;+;
                ;;;;LookFeelSettingsConfig;+;+;+;+;
                ;;;;MaterialNumber;+;+;+;+;
                ;;;;NumberInputFormField;+;+;+;+;
                ;;;;PaymentInfo;+;;;;
                ;;;;PaymentTypeGroup;+;+;+;+;
                ;;;;Principal;+;;-;-;
                ;;;;Product;+;+;-;-;
                ;;;;Product.supercategories;+;+;-;-;
                ;;;;Product.name;+;-;-;-;
                ;;;;Product.catalogVersion;+;-;-;-;
                ;;;;Product.approvalStatus;+;-;-;-;
                ;;;;Product.ccManufacturerName;+;-;-;-;
                ;;;;Product.defaultAssortment;+;-;-;-;
                ;;;;Product.taxExemptDE;+;-;-;-;
                ;;;;Product.taxExemptAT;+;-;-;-;
                ;;;;Product.companyCodeAssignment;+;-;-;-;
                ;;;;Product.unit;+;-;-;-;
                ;;;;Product.orderableuntil;+;-;-;-;
                ;;;;Product.producAvailTextField;+;-;-;-;
                ;;;;Product.producAvailNumberOfDays;+;-;-;-;
                ;;;;Product.deliveryModes;+;-;-;-;
                ;;;;Product.onlineDate;+;-;-;-;
                ;;;;Product.offlineDate;+;-;-;-;
                ;;;;Product.purchasableFromDate;+;-;-;-;
                ;;;;Product.purchasabletoDate;+;-;-;-;
                ;;;;Product.sapBlockedDate;+;-;-;-;
                ;;;;Product.description;+;-;-;-;
                ;;;;Product.summary;+;-;-;-;
                ;;;;Product.productReferences;+;-;-;-;
                ;;;;Product.europe1Prices;+;-;-;-;
                ;;;;Product.minorderQuantity;+;-;-;-;
                ;;;;Product.maxOrderQuantity;+;-;-;-;
                ;;;;Product.priceQuantity;+;-;-;-;
                ;;;;Product.Europe1PriceFactory_PPG;+;-;-;-;
                ;;;;Product.Europe1PriceFactory_PTG;+;-;-;-;
                ;;;;Product.Europe1PriceFactory_PDG;+;-;-;-;
                ;;;;Product.europe1discounts;+;-;-;-;
                ;;;;Product.picture;+;-;-;-;
                ;;;;Product.thumbnail;+;-;-;-;
                ;;;;Product.data_sheet;+;-;-;-;
                ;;;;Product.detail;+;-;-;-;
                ;;;;Product.logo;+;-;-;-;
                ;;;;Product.normal;+;-;-;-;
                ;;;;Product.others;+;-;-;-;
                ;;;;Product.thumbnails;+;-;-;-;
                ;;;;Product.galleryImages;+;-;-;-;
                ;;;;Product.documents;+;-;-;-;
                ;;;;Product.variantType;+;-;-;-;
                ;;;;Product.variants;+;-;-;-;
                ;;;;Product.ean;+;-;-;-;
                ;;;;Product.manufacturerAID;+;-;-;-;
                ;;;;Product.manufacturerName;+;-;-;-;
                ;;;;Product.deliveryTime;+;-;-;-;
                ;;;;Product.contentUnit;+;-;-;-;
                ;;;;Product.numberContentUnits;+;-;-;-;
                ;;;;Product.remarks;+;-;-;-;
                ;;;;Product.keywords;+;-;-;-;
                ;;;;Product.features;+;-;-;-;
                ;;;;Product.allDocuments;+;-;-;-;
                ;;;;Product.comments;+;-;-;-;
                ;;;;Product.endLineNumber;+;-;-;-;
                ;;;;Product.erpGroupBuyer;+;-;-;-;
                ;;;;Product.erpGroupsupplier;+;-;-;-;
                ;;;;Product.europe1Taxes;+;-;-;-;
                ;;;;Product.linkComponents;+;-;-;-;
                ;;;;Product.manufacturerTypeDescription;+;-;-;-;
                ;;;;Product.namedItem;+;-;-;-;
                ;;;;Product.order;+;-;-;-;
                ;;;;Product.orderQuantityInterval;+;-;-;-;
                ;;;;Product.ownEurope1Prices;+;-;-;-;
                ;;;;Product.ownEurope1Taxes;+;-;-;-;
                ;;;;Product.productDetailComponents;+;-;-;-;
                ;;;;Product.productFeatureComponents;+;-;-;-;
                ;;;;Product.productListComponents;+;-;-;-;
                ;;;;Product.productOrderLimit;+;-;-;-;
                ;;;;Product.restrictions;+;-;-;-;
                ;;;;Product.salesRanking;+;-;-;-;
                ;;;;Product.sapBaseUnitConversion;+;-;-;-;
                ;;;;Product.sapBlocked;+;-;-;-;
                ;;;;Product.sapConfigurable;+;-;-;-;
                ;;;;Product.sapEAN;+;-;-;-;
                ;;;;Product.sapPlant;+;-;-;-;
                ;;;;Product.segment;+;-;-;-;
                ;;;;Product.sequenceId;+;-;-;-;
                ;;;;Product.specialTreatmentClasses;+;-;-;-;
                ;;;;Product.startLineNumber;+;-;-;-;
                ;;;;Product.supplierAlternativeAID;+;-;-;-;
                ;;;;Product.unitOfMeasure;+;-;-;-;
                ;;;;Product.unspcs;+;-;-;-;
                ;;;;Product.vendors;+;-;-;-;
                ;;;;Product.xmlcontent;+;-;-;-;
                ;;;;ProductForAssortment;+;+;+;+;
                ;;;;ProductReference;+;-;-;-;
                ;;;;PunchOutCredential;+;+;+;+;
                ;;;;Reply;+;+;+;+;
                ;;;;Quote;+;;;;
                ;;;;QuoteEntry;+;;;;
                ;;;;StandardPaymentMode;+;;;;
                ;;;;StyleAttributes;+;+;+;+;
                ;;;;SyncItemJob;+;;;;
                ;;;;TermsAndConditions;+;+;+;+;
                ;;;;TextInputFormField;+;+;+;+;
                ;;;;Type;+;;;;
                ;;;;Unit;+;-;-;-;
                ;;;;UserGroup;+;+;+;+;
                ;;;;VariantType;+;;;;
                ;;;;ZoneDeliveryMode;+;+;+;+;
                ;;;;WorkflowAction;+;+;+;+;
                ;;;;WorkflowActionTemplate;+;+;+;+;
                ;;;;WorkflowDecision;+;+;+;+;
                ;;;;WorkflowDecisionTemplate;+;+;+;+;
                ;;;;WorkflowItemAttachment;+;+;;;
                ;;;;WorkflowTemplate;+;+;+;+;
$END_USERRIGHTS

因此我的用户看到了图标,但无法触发操作。我错过了什么许可或者我做错了什么?谢谢

enter image description here

解决方法

您试图授予访问权限以执行此操作的用户,必须是Admin组( admingroup )或B2BAdmin组( b2badmingroup )的一部分。 (根据OOB Hybris EnableB2BUnitAction )。

如果您不希望该用户成为这些组中任何一个的一部分,则必须重写 EnableB2BUnitAction.canPerform 方法以启用该操作。

请参考课程:

 de.hybris.platform.b2bcommerce.backoffice.actions.EnableB2BUnitAction