Base solution for your next web application
Open Closed

Users can not get permissions from organizational unit #8317


User avatar
0
muhittincelik created

Hi,

I created a new role and a new user.

I added permission to role.

User can go entities if i gave this role to him. But when i gave this role from organizational unit he can not go entities. Also can not see this module in menu.

I used 8.1 Core Angular..


11 Answer(s)
  • User Avatar
    0
    muhittincelik created

    And when i deleted organizational unit. Users roles can not be changed which came from organizational unit. This roles' checkbox disabled. There is a info like 'this role came from organizational unit'. Bu there are no organizational unit.

    I think it is a bug..

  • User Avatar
    0
    maliming created
    Support Team

    Can you reproduce the problem on the zero live demo site? If so please provide steps.

  • User Avatar
    0
    muhittincelik created

    http://df514972.demo.aspnetzero.com

    admin 123456

    You can check user muhittin.celik's roles.

  • User Avatar
    0
    muhittincelik created

    I reproduced my second question. I am trying first one.

  • User Avatar
    0
    maliming created
    Support Team

    hi I create a role named TestRole and give it some permissions(Users,Roles) I create a organization named TestORG and give it an user(andrew.andrewus) and a role(TestRole)

    When I log in using andrew.andrewus everything works fine.

    Regarding the issue of deleted organizational unit, I have not tried it yet, Let's go step by step.

  • User Avatar
    0
    muhittincelik created

    In my site i tried my first question it is working. I can not reproduce again. I will try again.

    You can check my second question.

  • User Avatar
    0
    maliming created
    Support Team

    ok

  • User Avatar
    0
    muhittincelik created

    Ok i reproduce the problem.

    I created role and give permisions to this role I create a user I create a organizational unit and give this role to this unit Add this organization unit to this user.

    Everything ok and work

    I edit user permission and unselect all permission's. And save He also owns organizational unit. And can not go pagess. I took and and organizational unit again but nothing changed.

    I think user can take permissions from organiational unit if i take from permissions. Or if i take org unit and give again permission may be added again.

  • User Avatar
    0
    maliming created
    Support Team

    hi

    You can set its permissions for a user, or set a role with permissions for a user. Or add a user to an organization, it may contain multiple roles.

    However, the priority of the user's own permissions is the highest, that is, if you revoke a user's permission, even if the user's role has this permission, the user will show that there is no such permission.

  • User Avatar
    0
    maliming created
    Support Team

    hi muhittincelik

    And when i deleted organizational unit. Users roles can not be changed which came from organizational unit.

    This problem is solved see: https://github.com/aspnetzero/aspnet-zero-core/issues/2892

  • User Avatar
    0
    ismcagdas created
    Support Team

    This issue is closed because of no recent activity. Please open a new issue if you are still having this problem.