Forbidden message in Actions column persists

  • Posts: 636
  • Thank you received: 16
11 years 6 months ago #108644

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

Attachments:
Last edit: 11 years 6 months ago by PeterChain.

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

  • Posts: 26166
  • Thank you received: 4029
  • MODERATOR
11 years 6 months ago #108660

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:

	protected $toggle = array('product_published' => 'product_id');
By
	protected $toggle = array('product_published' => 'product_id');
	protected $toggleAcl = array('product_published' => 'product_edit_published');
And
if(!$app->isAdmin() && ((int)$value == 0 || empty($this->toggle[$task]) || !hikamarket::acl('product_edit_'.$task) || !hikamarket::isVendorProduct((int)$value) ))
By
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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: PeterChain

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

  • Posts: 636
  • Thank you received: 16
11 years 6 months ago #108694

WORKED!

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

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