Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Getting "401 Unauthorised Error" when logging as admin user with custom access.

    General Discussion
    2
    7
    582
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      AshJi last edited by

      I have created a new admin user with custom access. When I try to login with this user, I get below error. But when I click on the catalog icon, then able to access the admin pages. How to get rid of this error.

      dd116c75-2503-46da-9739-9c190196fcea-image.png

      1 Reply Last reply Reply Quote 0
      • J
        Jyoti last edited by

        Hi @AshJi
        Please mention the bagisto version that you are using.

        1 Reply Last reply Reply Quote 0
        • J
          Jyoti last edited by

          Hi @AshJi
          You are getting this 401 because you have not provided dashboard access in custom role and whenever user login it open the dashboard grid and in this case dashboard access is not given so it showing 401 for that.

          1 Reply Last reply Reply Quote 0
          • A
            AshJi last edited by

            @Jyoti
            I am using version v1.1.2

            Gave Dashboard access and still getting same error. You can see 'Dashboard' icon now visible in left side bar.

            eeb8df91-6b2b-44be-b715-e750ed80e472-image.png

            1 Reply Last reply Reply Quote 0
            • A
              AshJi last edited by

              BTW I think 'Dashboard' access should not be made mandatory. It has lot's of info and users with specific access should not have access to all this info.

              1 Reply Last reply Reply Quote 0
              • J
                Jyoti last edited by

                @AshJi
                Dashboard access is not mandatory, the error message display because by default it redirect to dashboard you will not get any issue in accessing other grid.
                However we will try to display some relative message instead of error message.

                Thanks

                1 Reply Last reply Reply Quote 0
                • A
                  AshJi last edited by

                  @Jyoti said in Getting "401 Unauthorised Error" when logging as admin user with custom access.:

                  Dashboard access is not mandatory, the error message display because by default it redirect to dashboard

                  OK that helps. Thanks.
                  Yes it was the error message I was concern which seem more like a false positive. No loss of functionality but wud be good to change the message.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post