OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

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 Andrey Yatsenko 2 months, 3 weeks ago.

  • 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 2 months, 3 weeks ago by Andrey Yatsenko Andrey Yatsenko. Reason: fixed typo: business user > business unit
Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #38213
    Andrey Yatsenko
    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)

You must be logged in to reply to this topic.

You will be redirected to [title]. Would you like to continue?

Yes No