Hi everyone, i have created add all to project but...
# help
r
Hi everyone, i have created add all to project button and lopped each product into add to project and that was working fine in sonia's account but when i tries to do with any other account it gives me error. i want to know that which type of permission it needs.
w
I don't know any project entity in Spryker so it probably is something you've build on your own and therefore it's nearly impossible to figure out what the issue is as it can't come from the core
r
in B2B marketplace there is a button in PDP Add to project and i have just called that function in loop only but it is working in only sonia's account not in any others so i just want to know which type of permission sonia has ?
w
Oh I wasn't aware that this now exists, thanks. Per Default Sonia Wagner (I assume you are speaking of the default installed customer/company user Sonia) has the Buyer and Admin roles, which can be found in the backoffice at /company-user-gui/list-company-user. You can also check your login if it has the same roles, or if it misses one of it
The permissions per role can be found at /company-role-gui/list-company-role in the backoffice
😊 1
r
when i'm trying to login with sonia's account it gives me this error do you know about this ?
w
Can you paste the full exception?
r
Spryker \ Shared \ ZedRequest \ Client \ Exception \ RequestException (500) Failed to complete request with server authority http://backend-gateway.de.spryker.local. Configured with (SSL Disabled) backend-gateway.de.spryker.local: in /data/config/Shared/config_default.php. Error: Stacktrace: <div style="font-family: Helvetica, Arial, sans-serif; font-size: 14px"><h1>ZED Exception</h1><div style="background: #DADADA; padding: 5px"><font style="12"><b>ErrorException - Undefined array key 93</b></font></div><p>in /data/vendor/spryker/product-approval/src/Spryker/Zed/ProductApproval/Business/Filter/QuoteItemsFilter.php (67)</p><p><b>Url&lt;/b&gt;/persistent cart/gateway/sync storage quote&lt;/p&gt;&lt;p&gt;&lt;b&gt;Trace</b></p><pre>#0 /data/vendor/spryker/product-approval/src/Spryker/Zed/ProductApproval/Business/Filter/QuoteItemsFilter.php(67): Spryker\Shared\ErrorHandler\ErrorHandlerEnvironment->Spryker\Shared\ErrorHandler\{closure}(2, 'Undefined array...', '/data/vendor/sp...', 67) #1 /data/vendor/spryker/product-approval/src/Spryker/Zed/ProductApproval/Business/ProductApprovalFacade.php(169): Spryker\Zed\ProductApproval\Business\Filter\QuoteItemsFilter->filterCartItems(Object(Generated\Shared\Transfer\QuoteTransfer)) #2 /data/vendor
w
I assume https://github.com/spryker/product-approval/blob/ab5171af40f8fc10b06ad2e4c8b0116a2[…]pryker/Zed/ProductApproval/Business/Filter/QuoteItemsFilter.php is the issue, maybe you have a product abstract in the cart that doesn't exist in the database anymore
r
thank you i am checking this and get back to you.