Hello Everyone, I'm having an issue with a custom ...
# suitecommerce
s
Hello Everyone, I'm having an issue with a custom service, that is returning an insufficient permission but I enabled permissions with a specific role for this to work. what could be the cause for this? This worked previously on SCA 2022.2 we are now on 2024.1.30
s
If you elevated permissions and then have since re-deployed, you will need to elevate permissions again
Otherwise you will need to make sure that the role has the right permissions, and the user has the right role. Also check whether the script requires Available Without Login to be checked.
s
Hi Steve thanks for your Response, yes I have added the permissions back to the services files on the extensions folder on the ssp application, but I keep getting that response. Has there any change needed on the Custom roles creation to be able to use the Account Register as a guest? Do I need to create a role from a particular center?
I just removed my custom service model call an I keep getting this response
m
We are getting the same error with one of our customers, we haven't change anything and we start facing permission issues on different services
Captura de pantalla 2025-01-14 a la(s) 17.39.55.png
s
Glad to know we are not the only ones with this issue, did you test if on First time register would go to the checkout and redirect you back to the login?
m
Let me check, do you have a custom role or using the default customer center role ?
No the same but, getting permission error from the live order too
s
User not logged in response?
m
After trying to guest checkout i get the permission error on the liveorder
But if i open the request in a new tab it works 🫠
Captura de pantalla 2025-01-14 a la(s) 18.02.54.png
Captura de pantalla 2025-01-14 a la(s) 18.03.14.png
s
This started to happend to me before new years, opened a case but no luck because the reference application doesn't get that issue it seems
m
We have some other services with the same issue and same, reference works correctly
s
Seems to be an issue with the communication with the extensions? I've tried everthing at reach on the admin role. My last resource is to re install SCA 2024.1.30
m
We are running 2021.1
the liveorder service works on shopping but not in checkout
s
Did you get maintenance for 2025.1?
m
don't recall, we are on 2024.2 and this is only happening in SB
s
I have this issue in prod too
i actually started in prod and not in SB, We refreshed an it also happens there now
m
I think we found the issue and was related to a custom record without the correct permission was set to none
s
is a Custom record you control or is it a bundle?
m
no, was a custom record created by us
s
But it should be a custom record related to the website or could be any custom record? and what specific permission was wrong, if you don;t mind sharing?
m
yes was a custom record related with the website, it was set to none
Captura de pantalla 2025-01-14 a la(s) 20.17.59.png
s
Glad you where able to solve it, I still have this strange issue, although not allowed is not a reponse anymore as I reactivated my custom services, basically the user seemes to NOT log in for what ever reason I'll start changing all the custom records to see if any of them work
Also after being redircted back to the login page I go to the shopping and start getting permissions issues too, and now I tried to add to cart and got this from the live order. This is only after I try to checkout as a guest or register for the first time on the website, already registered customers DON'T experience this
This is what I get After Loggin in as a guest shopper and adding an address to the checkout
I wonder if bundled locked Custom Records with none on this permission settings would cuase this issue
I keep getting a strange behavior trying to fix this issue, I have narrowed down quite alot of situations but Permissions are still playing a strange role here, I;m getting insufficient permission on a Service that Has enabled permissions and a Role that has the Permissions requested which is Lists -- > Customer is added to that Role, is this because of Suitescript2? Should I create a case?
b
I have an extension that also gets the same permission error for Lists -> Customer, and it uses elevated permissions where the role has List -> Customer. Mine uses 1.0, but I haven't been able to figure it out either and its definitely using the elevated role because it has other custom record permissions on it in the same service that don't throw permission errors
sca 2023.1 and ns 2024.2
s
Now it doesn{t throw the error there it throws I believe in a Account Service Controller that uses the Account.Model Extension, but for this type of files we can{t change permissions, I believe that is what's happening on my end. If I remove the call to this model extension should work. But I lose some business logic
s
Hi guys for me also even after assigning a role service file Which is having contacts full access It's still giving me the insufficient permission error What could be the reason for this behaviour of ss file