Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Graham Carr 43 posts 263 karma points c-trib
    Oct 06, 2020 @ 21:16
    Graham Carr
    0

    Editor user permissions issue with creating discount codes/gift cards

    Hi Matt,

    My client reported an issue with everytime they log into Umbraco and try to create a discount code or gift card they immediately get logged out of Umbraco and need to close the browser window to gain access again.

    I have tested locally and have spotted that if you are an administrator with commerce group access it works fine, but if you are an editor with commerce group access then the issue occurs and you get immediately logged out when trying to create discount codes/gift cards.

    I hope it was okay to do this (feel free to delete it afterwards) but I also managed to test this on your demo site as well by creating a user as an editor and the issue also occurs there, the login details if you want to access and try are as follows:

    [email protected]

    *iQZTD&WF2

    The workaround I have had to give them for now is to provide administrator access but this is not ideal so if you are able to get a fix for this sorted that would be great.

    Many thanks,

    Graham

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Oct 07, 2020 @ 08:16
    Matt Brailsford
    0

    Thanks Graham,

    I'll take a look at this as soon as I can. I've raised this as an issue on our issue tracker so I will keep the conversation there but will report back once I have have a resolution / answer https://github.com/vendrhub/vendr/issues/197

    Matt

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Oct 07, 2020 @ 09:46
    Matt Brailsford
    100

    Looks like we had the wrong permission checks on the API controllers for both discounts and gift cards. It was checking to make sure you had access to the settings section, but it should have been checking to make sure you had permissions for the commerce section (the controllers probably got copied and pasted from the Vendr settings API controllers and never got updated).

    All methods on the controllers have been updated accordingly.

    Fix will be in 1.3.2 patch release

  • Graham Carr 43 posts 263 karma points c-trib
    Oct 07, 2020 @ 18:27
    Graham Carr
    0

    That's perfect, many thanks for sorting so quickly, I look forward to the release of the patch release, do you have any idea for the timeline of when it will be released?

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Oct 07, 2020 @ 19:16
    Matt Brailsford
    0

    Hi Graham

    I’ll look to get an update out by the end of the week 👍🏻

    Matt

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Oct 09, 2020 @ 12:59
    Matt Brailsford
    0

    Hi Graham.

    1.3.2 has just been released containing this fix.

    Thanks again for reporting

    Matt

  • Graham Carr 43 posts 263 karma points c-trib
    Oct 09, 2020 @ 17:44
    Graham Carr
    0

    Amazing, thanks for sorting so quickly!!

Please Sign in or register to post replies

Write your reply to:

Draft