Vendor Permissions For Addon

I'm a bit stumped. On my development systems, all is well. On one client's site, vendors can't access my license_keys addon.
I have the cscart_permissions table updated with manage_license_keys = Y
and I have an approprate app/addons/license_keys/schemas/permissions/vendor_multivendor.post.php file with content of:

$schema['controllers']['license_keys'] = array (
    'permissions' => true,
);

return $schema;

But for whatever reason, attempts to access the addon while in the context of a vendor fails with a 404.

Any thoughts/insights?
Yes, there is a related admin.post.php file in schema/permissions.

Perhaps share the software stack of your client? PHP Version, enabled modules, etc.

Please check vendor_multivendor.post.php file in 3rd party addons. Perhaps, one of them does not contain return $schema; at the end

Perhaps share the software stack of your client? PHP Version, enabled modules, etc.

Please check vendor_multivendor.post.php file in 3rd party addons. Perhaps, one of them does not contain return $schema; at the end

PHP 7.2.10

4 3rd party addons (other than mine).

- Blue Rabbit (never heard of it) Looks locally developed

- FraudLabs Pro

- Simtech Master Products (disabled)

- Virtual Wallet also looks locally developed.

I turned off the two local addons and it worked. So I'll let the client know and either have them address or I'll look into the issue for them.

Appreciate the quick responses...

Just FYI. I took a look at one of these addons and they are setting the $shema directly and re-doing all the permissions. I.e.

$schema = array( ....)

rather than things like

$schema['controllers']['addon'] = array(...)

So if their addon priority is higher than mine, their 'post' schema ill wipe out any definitions that have come before it.

Thank you for sharing the solution. I was sure the problem is caused by 3rd party addon

Yep, and the client has gone on vacation! :-)

It's awesome that developers can work together here in a cooperative manner.

I took a look at one of these addons and they are setting the $shema directly and re-doing all the permissions. I.e.

$schema = array( ....)

rather than things like

$schema['controllers']['addon'] = array(...)

So if their addon priority is higher than mine, their 'post' schema ill wipe out any definitions that have come before it.

Thank you and @eComLabs for your insights. I have a similar case with a fourth-party addon. It adds tabs for the vendor store but while doing that it wipes out the vendor's permissions set by another addon, Vendor Plans (vendor_plans)

Here is what I found in the said .php

$schema['controllers']['vendor_tabs'] = array ('permissions' => true);
$schema['controllers']['tools']['modes']['update_status']['param_permissions']['table']['vendor_tabs'] = true;
return $schema;

It looks correctly since it adds new elements and does not override the whole schema

It looks correctly since it adds new elements and does not override the whole schema

The original vendor_plans says false and a coma

$schema['controllers']['vendor_plans'] = array(
    'permissions' => false,
);

return $schema;

The original vendor_plans says false and a coma

$schema['controllers']['vendor_plans'] = array(
    'permissions' => false,
);

return $schema;

"vendor_plans" is not "vendor_tabs" so the two are separate.

"vendor_plans" is not "vendor_tabs" so the two are separate.

Thanks, the question was what does the "false" in the vendor_plans do different from "true" in the vendor_tabs' vendor_multivendor.post.php files

Thanks, the question was what does the "false" in the vendor_plans do different from "true" in the vendor_tabs' vendor_multivendor.post.php files

Hmm, don't see that question. The true/false grants/denies access access to the controller. And in his second case, it grants/denies for a specific mode of the controller.

The comma is optional (for historic reasons) in PHP for the last element of an array(). I.e. it's ignored if it's the trailing delimiter in a declaration.

Thanks, the question was what does the "false" in the vendor_plans do different from "true" in the vendor_tabs' vendor_multivendor.post.php files

In your case vendor will have access to vendor_tabs, but vendor_plans will be forbidden

In your case vendor will have access to vendor_tabs, but vendor_plans will be forbidden

I have checked again the behavior of both addons on the vendor's side. When Vendor Tabs is active there are no more vendor plans - all vendor admins have equal access to everything, like in the standard MV, but they still cannot create tabs. This option is available only to the site admin.

I have checked again the behavior of both addons on the vendor's side. When Vendor Tabs is active there are no more vendor plans - all vendor admins have equal access to everything, like in the standard MV, but they still cannot create tabs. This option is available only to the site admin.

Please make sure that this feature is not part of the Vendor tabs addon functionality

Please make sure that this feature is not part of the Vendor tabs addon functionality

Vendor Plans has been designed only in August/September '18 for MV+ while Vendor Tabs is out there since January '18,

https://forum.cs-cart.com/topic/50920-free-addon-vendor-tabs-for-multivendor/

Hm... Did you try to contact CS-Cart team with this issue?

Hm... Did you try to contact CS-Cart team with this issue?

This is not part of their work. Contacted instead the author of this script who is a regular CS-Cart user like us. Forget about it. The addon itself must have different functionality - tabs should be created either by admin for all vendors, or by the vendors depending on their needs. First option is preferable. So waiting for some developer to find this project interesting and offer an official addon on the CS-Cart marketplace.

https://forum.cs-cart.com/topic/50920-free-addon-vendor-tabs-for-multivendor/

Vendor Plans has been designed only in August/September '18 for MV+ while Vendor Tabs is out there since January '18,

https://forum.cs-cart.com/topic/50920-free-addon-vendor-tabs-for-multivendor/

I think you are confusing the standard Vendor Plans addon with the new Vendor addon (not sure of the name) that adds additional functionality but comes with a hefty price tag. Not familiar with any Vendor Tabs addon from cs-cart. Must be from 3rd party.