Skip to main content

Forbidden message in Actions column persists

More
13 years 3 months ago - 13 years 3 months ago #108644 by PeterChain
I reported this problem some days ago and I was told tu update both Shop and MArket.

Well, the updates are done and the problem persists.

The problem is not only the message but that the Publishing / unpublishing feature doesn't work

Last edit: 13 years 3 months ago by PeterChain.

Please Log in or Create an account to join the conversation.

More
13 years 3 months ago #108660 by Jerome
Hi,

I was expected it was a problem with the token validation passed in the url. It wasn't.
Please edit the file "administrator/com_hikamarket/classes/product.php" and replace:
Code:
protected $toggle = array('product_published' => 'product_id');
By
Code:
protected $toggle = array('product_published' => 'product_id'); protected $toggleAcl = array('product_published' => 'product_edit_published');
And
Code:
if(!$app->isAdmin() && ((int)$value == 0 || empty($this->toggle[$task]) || !hikamarket::acl('product_edit_'.$task) || !hikamarket::isVendorProduct((int)$value) ))
By
Code:
if(!$app->isAdmin() && ((int)$value == 0 || empty($this->toggle[$task]) || ( empty($this->toggleAcl[$task]) && !hikamarket::acl('product_edit_'.$task) ) || ( !empty($this->toggleAcl[$task]) && !hikamarket::acl($this->toggleAcl[$task]) ) || !hikamarket::isVendorProduct((int)$value) ))
Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: PeterChain

Please Log in or Create an account to join the conversation.

More
13 years 3 months ago #108694 by PeterChain

Please Log in or Create an account to join the conversation.

Moderators: Obsidev
Time to create page: 0.178 seconds
Powered by Kunena Forum