oroinc / orocommerce

Main OroCommerce package with core functionality.
http:///www.orocommerce.com/
Other
193 stars 83 forks source link

Can not delete User from grid #128

Open yaroslavbr opened 3 years ago

yaroslavbr commented 3 years ago

Summary
Trying delete user on the grid causes "You do not have permission to perform this action." (see detailed STR)

Steps to reproduce

Actual Result "You do not have permission to perform this action.". No any records in log file. 1 2

Expected Result
There should not be such error notification. And user should be deleted successfully. OR if there are any restrictions for user deleting no "delete" btn should be available for such record.

Details about your environment

PS: Actually I faced with issue on my customization. But made clean installation just to reproduce.

anyt commented 3 years ago

Thank you for the detailed report, Yaroslav.

It's a known issue, internal ticket id #BB-18954. The issue happens because of multiple references from the user entity to other entities, used internally, and there is no way to delete these internal entities from UI. For more details set a breakpoint at \Oro\Bundle\OrganizationBundle\Ownership\OwnerDeletionManager::hasAssignments() method