OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform OroPlatform – Programming Questions User Groups -> Roles

This topic contains 4 replies, has 2 voices, and was last updated by  Paul Stoica 8 years ago.

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

  • Creator
    Topic
  • #34117

    Paul Stoica
    Participant

    Hello,

    I saw that Oro User Groups (Oro\Bundle\UserBundle\Entity\Group entity) has possibility to add roles, but the code is commented in GroupType::buildForm, and in view is not added that form(form.rules).

    I want to use these feature completely, is there a reason this was removed?
    I can extend UserBundle to add this feature again, but can you tell me if there was an issue with it, or something else?

    I use ‘1.9.*’ version for oro-platform.

    Thank you,
    Paul.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • #34118

    Yevhen Shyshkin
    Participant

    Hello, Paul.

    As I remember originally UserGroup entity was intended to assign additional permissions by groups, but later we introduced BusinessUnit/Organization entities and whole security mechanism for this purpose, so now roles field is basically unused.

    If you need to use it feel free to do that, but you should remember that selected roles will not affect security permissions.

    #34119

    Paul Stoica
    Participant

    Ok, I know that will not affect security permissions, but I thought that I can add onpersist, or onsubmit user form these roles taken from selected group, or something like this. Because I wanted to select roles on Business Unit(in user form) and only if I use groups of roles I have this possibility, because the Role entity doesn’t have ownership, for what I saw.

    Thank you.

    #34120

    Yevhen Shyshkin
    Participant

    > Role entity doesn’t have ownership
    Probably, we should improve this behaviour – your case sounds quite reasonable.

    For now you can use use UserGroups for this purpose. As for place to modify user roles – I’d recommend to override UserHandler service and fix onSuccess method there.

    #34121

    Paul Stoica
    Participant

    Ok, Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)

The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.

Back to top