Jump to content

new Employee with specific permission


pedro fonseca

Recommended Posts

i create a new Employee in backoffice.

this employee is for the Suppliers.

Suppliers can insert products, but not (permission) publish. Only insert. I approve and publish the inserts products by suppliers.

is possible? have a module?



p.s. sorry my english.

Link to comment
Share on other sites

Hi;
It seems hard but not impossible.
I know two ways
1. Edit Admin/Tabs/AdminProducts.php
line 1212 (for ps v1.4.3)

add this lines

if ($cookie->id_employee == ID)
$product->active = 0;


Before
if ($object->add())
(Change ID to your suppliers id)

2nd Way
A module does it by hooking product add. I can make it as a module but currently not enough time.

Link to comment
Share on other sites

  • 2 years later...

Hi;

It seems hard but not impossible.

I know two ways

1. Edit Admin/Tabs/AdminProducts.php

line 1212 (for ps v1.4.3)

 

add this lines

if ($cookie->id_employee == ID)$product->active = 0;
Before

if ($object->add())

(Change ID to your suppliers id)

 

2nd Way

A module does it by hooking product add. I can make it as a module but currently not enough time.

 

Dear Friend, 

Will it be possible to do this trick on PS 1.5.3.1? 

I have very limited programming skills and I'm searching for the files you describe but can not find them.

Please help me. I need it.

Thank you in advance

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...