-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Product Type Permissions Broken #42
Comments
Yikes, thank you! |
@andris-sevcenko thanks for the quick fix! The permissions work fine now when trying to edit a product directly e.g. /admin/digital-products/products/productType/ID , but the main products listing page doesn't show any products or product types, and the button to add new products is missing from top right. I've had a look at the DigitalProductsProductIndex.js file but couldn't decipher what's wrong. |
Ugh, of course. Because Digital Products hasn't really been converted to using UIDs instead of IDs in the source keys. Hang on. |
Permissions specific to product types are saved as:
digitalProducts-manageProductType:productTypeId
but checked as:
$this->requirePermission('digitalProducts-manageProducts:' . $product->typeId);
This means that currently only super admins can create/edit products.
The text was updated successfully, but these errors were encountered: