You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[4.x]: Duplicate action for edit product does check permission via the Elements service to determine whether the Save as new product button is shown in the cp
#3819
Open
samhibberd opened this issue
Dec 17, 2024
· 2 comments
More importantly it doesn't currently prevent duplication / throw an exception in the case that the duplicate action is called and the action is not authorized. Need to ensure it calls the Elements service to hook into the service level authorization events.
What happened?
Description
Running into this issue (#3285) with the Duplication logic, needs hooking up i think:
Steps to reproduce
$e->authorized = false
via theElements::EVENT_AUTHORIZE_DUPLICATE
Expected behavior
Should hide: Save as new product
Craft CMS version
4.12.5
Craft Commerce version
4.6.13
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered: