G
G
Greg Plitt2016-05-10 11:02:02
1C-Bitrix
Greg Plitt, 2016-05-10 11:02:02

How to give the ability to edit products in the online store to ordinary users?

cQaDnMr-NEk.jpg
About 1000 users will be manually registered on the site (Bitrix-Business), after user registration, the site administrator creates a "Product" on the site and adds it to the desired category, sets all the parameters of the product.
Next, I need to give access to editing this product specifically to one user (under whom I started the product).
Please share your ideas on how this can be done.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2016-05-10
@Logic87

In the admin panel, it is unlikely that it will be possible to implement it.
But. You can implement it like this:
1) The user registers, adds a product (I won’t tell you which component to use yet ... although you can try the component for adding an element first);
2) Naturally, when adding a product, we write down the ID of either the user or the product, respectively, in the property of either the user or the product (at your discretion to taste).
3) And editing will need the same add component, but using the api method, select the element according to the properties that you added when the user created the product.
In this way, you will give editing permission to specific users. Something like this.

S
Sergey, 2016-05-10
@gangstarcj

The product has a property associated with the user.
Infoblock you put the usual rights (reading).
There is a page with a product editing form (normal html form), which sends data by Ajax to the product update script, in the script it is checked whether the current user eats in the property.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question