Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

User temporarily losing permissions #11846


User avatar
0
tmonczko created

Hi there

We're on version 5.14 (ASP.NET Core + Angular) and we're experiencing an issue where a user on a non-host tenant will temporarily lose its permissions (which should flow through from the default 'User' Role). We've been able to check the user's permissions (Admin > Users > the-user > Permissions) and see this behaviour for ourselves.

The strange thing is, without us changing anything, when we check a bit later the user has the correct permissions.

We know we're long overdue for an upgrade to the latest version of ASP.Net Zero and we plan to do so. However, in the meantime before we schedule that work in, we're hoping to apply a patch/fix. Do you know if this behaviour was ever identified as a bug and fixed in one of the ASP.Net Zero updates?

Cheers Travis


6 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @tmonczko

    Do you run your app as single instance of multiple instances ?

  • User Avatar
    0
    tmonczko created

    Hi @ismcagdas

    We're running the app as a single instance (one database, one instance running the backend).

  • User Avatar
    0
    tmonczko created

    Not sure why it was marked as closed - reopened.

    We saw it again today and it was the same setup:

    • a user is assigned the 'User' role
    • the User role is assigned various permissions;
    • those permissions suddenly stop flowing through to the user (can be checked by clicking on the user's Permissions via, i.e. where you can 'Reset Special Permissions').

    We were able to fix it for that particular user by removing the User role allocation from that user, than adding it back.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    I'm not sure the issue is closed, sorry for that. I have found two potential issues which might be related to your problem;

    1. https://github.com/aspnetboilerplate/aspnetboilerplate/issues/5835
    2. https://github.com/aspnetboilerplate/aspnetboilerplate/pull/6116

    Could you upgrade your ABP NuGet packages to at least latest 6.x version and try again ?

  • User Avatar
    0
    tmonczko created

    Appreciate your response @ismcagdas. We'll let you know how you go. It has probably given us the push we needed anyway to upgrade to Zero v13

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks, I hope the upgrade will work. It is hard to detect such problems but we will try to help you to solve it.