OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums Forums OroCommerce No permission to delete a business unit as administrator

This topic contains 1 reply, has 2 voices, and was last updated by  Andrey Yatsenko 5 years, 2 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #38180

    Tom Van Overbeke
    Participant

    Hi,

    I created a business unit for testing purposes, and now I can’t delete it anymore.
    There are no users attached to it. And I have the administrator role.

    ‘You do not have permission to perform this task’

    How can I get rid of it ?

    Thanks,
    Tom

    • This topic was modified 5 years, 2 months ago by  Andrey Yatsenko. Reason: fixed typo: business user > business unit
Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #38213

    Andrey Yatsenko
    Moderator

    Hi Tom,

    This is a known issue, that happens because the Business Unit is an owner to some related entities.

    For delete business unit need to remove all relations, and unfortunately, some of them can’t be deleted from UI, so you need to do it from the database directly or with the migration that will delete first all related entities.
    To know the list of related entities you can debug with the breakpoint at this method:
    \Oro\Bundle\OrganizationBundle\Ownership\OwnerDeletionManager::hasAssignments($owner)

Viewing 1 replies (of 1 total)

The forum ‘OroCommerce’ is closed to new topics and replies.

Back to top