A
A
Andrey Kharitonov2019-05-09 18:37:54
1C-Bitrix
Andrey Kharitonov, 2019-05-09 18:37:54

Is it possible to run functions from the administrator in Bitrix?

there is a function to add to cart Add2BasketByProductID.
It adds to the cart only when authorized by the administrator.
Is it possible to run a function from the administrator in Bitrix through the API and, after successful completion, give the rights of the previous user again?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Panteleev, 2019-05-09
@s_panteleev

The Add2BasketByProductID function adds a product to the basket to the current Fuser object (it can be both an authorized user and a guest), if your function works only under the administrator - most likely something is wrong :)
upd: judging by your previous question , check access rights (for example, the rights of the price type /bitrix/admin/cat_group_admin.php - perhaps it is available only to admins)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question