roles and permissions – ACL – https://slack.shopware.com/

roles and permissions – ACL – https://slack.shopware.com/


[expand title=“mehr lesen…“]

Hannes Wernery 13:40 Uhr
Hey! The ACL system is supposed to be upwards and downwards compatible https://hi.shopware.com/ACL
But as I see it, if I activate this feature and set up a role for a user, any models that are not listed in the role/permission management are not allowed. Meaning: entities that are not explicitly listed and activated in the management cannot be used by that user. This requires changes in our plugin.

code: „0“
detail: „Missing privilege my_custom_model:read“
meta: {,…}
status: „403“
title: „Forbidden“
This is not quite downwards compatible, is it? Or am I missing something?

[Meteor] Brent Robert10:55 UhrWe seem to be having an issue with a template of the B2B suite:This is default shopware:

{% block  page_checkout_confirm_address_billing_actions_link %}
<a href="{{ path('frontend.account.address.edit.page', {'addressId': billingAddress.id}) }}"
title="{{ "account.overviewChangeBilling"|trans|striptags }}"
class="btn btn-light"
data-address-editor="true"
data-address-editor-options='{{ addressEditorOptions|json_encode }}'>
{{ "account.overviewChangeBilling"|trans|sw_sanitize }}
</a>
{% endblock %}

This is B2B suite:

{% block  page_checkout_confirm_address_shipping_actions_link %}
{% if b2bSuite %}
<a
title="{{ "account.overviewChangeShipping"|trans|striptags }}"
class="btn btn-light ajax-panel-link {{ b2b_acl('b2bcontactaddress', 'list') }}"
data-target="address-select"
href="{{ path('frontend.b2b.b2baddressselect.index', {'type': 'shipping', 'selectedId': shippingAddress.id}) }}"
>
{{ "account.overviewChangeShipping"|trans|sw_sanitize }}
</a>
{% else %}
{{ parent() }}
{% endif %}
{% endblock %}

The B2B suite is losing the data-addresss-editor(-options) tags and breaking the layout?


[/expand]




roles and permissions – november 2020


[expand title=“mehr lesen…“]

 
Roles & Permissions is planned for NovemberPrepare your plugin now: 
 
In November we plan to release the highly demanded feature „Roles & Permissions“ (ACL). With this feature you will be able to assign rights and roles to users in the administration.
 
Prepare your plugins:
In order for store operators to be able to use the feature „Roles & Permissions“ to its full extent, you should prepare the rights in your plugins now.
 
What you have to do for that?
The feature „Roles & Permissions“ is already completely implemented on the master (GitHub) and can be tested by activating a feature flag. A detailed instruction on how to activate the feature flag can be found below in the mailing.
 
Important to know:
All customizations are upward and downward compatible. That means you can make the changes now and your plugin is still compatible in older Shopware 6 versions and of course in future versions.
 
Documentation 
Activate feature flagDevelopment Template 
 
If the Development Template is used, the feature flag can be activated as follows:
 
1.) The following code should be integrated in the .psh.yaml.override
 
Check out the Code on GitHub
 
 
2.) After that the cache should be cleared with the following command:
 
./psh.phar cache
 
 
Activate feature flagProduction Template and all other installation types 
 
For all other types of installation, proceed as follows:
 
1.) An environment variable should be created with the following values:
 
FEATURE_NEXT_3722=1
You can also use e.g. the .env file.
 
2.) The cache should be cleared with the following command:
 
bin/console cache:clear
 
1000 +GitHub Stars
 
800,000 +Downloads
 
2000 +Developers on Slack
 
 
 
 
shopware AG
Ebbinghoff 10
Schöppingen
 
 DE: +49 (0) 2555 928850
UK: +44 (0) 203 095 2445
World: 00 800 746 7626 0
info@shopware.com
 

Board: Stefan Hamann, Sebastian Hamann
Supervisory Board: Reinhold Wellers (Chairman), Christoph Hertz, Christoph Pliete
Register Court: Amtsgericht Coesfeld HRB 11471
 
Unsubscribe from the Developer Newsletter 
 


[/expand]