Skip to content

Commit

Permalink
Add ACL to mass edit job
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmus committed Aug 25, 2022
1 parent f750375 commit 209b298
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 3 deletions.
12 changes: 9 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@
"name": "macopedia/akeneo-product-translation",
"type": "symfony-bundle",
"description": "Translation extension for Akeneo",
"version": "0.1.13",
"version": "0.2.0",
"license": "OSL-3.0",
"authors": [
{
"name": "Piotr Musiał",
"homepage": "https://www.codehat.pl"
"email": "[email protected]",
"homepage": "https://www.macopedia.com"
}
],
"require": {
"akeneo/pim-community-dev": "^4.0.0||^5.0.0",
"akeneo/pim-community-dev": "^4.0.0||^5.0.0||^6.0.0",
"google/cloud-translate": "^1.9"
},
"require-dev": {
Expand Down Expand Up @@ -39,5 +40,10 @@
"cs:fix": [
"vendor/bin/php-cs-fixer fix"
]
},
"config": {
"allow-plugins": {
"symfony/flex": true
}
}
}
4 changes: 4 additions & 0 deletions src/Resources/config/acl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pim_enrich_mass_translation:
type: action
label: macopedia.acl.label
group_name: pim_enrich.acl_group.product
1 change: 1 addition & 0 deletions src/Resources/config/form_extensions/mass_edit/product.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ extensions:
module: macopedia-translator/mass-edit/translate
parent: pim-mass-product-edit
position: 500
aclResourceId: pim_enrich_product_edit_attributes
config:
title: pim_enrich.mass_edit.product.title
label: macopedia.mass_edit.attribute_translator.label
Expand Down
3 changes: 3 additions & 0 deletions src/Resources/translations/messages.en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
macopedia:
acl:
label: "Mass attribute translation"
3 changes: 3 additions & 0 deletions src/Resources/translations/messages.pl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
macopedia:
acl:
label: "Masowe tłumaczenie atrybutów"

0 comments on commit 209b298

Please sign in to comment.