I
I
iAlex1952018-11-12 16:02:47
1C-Bitrix
iAlex195, 2018-11-12 16:02:47

How to send a message to all users except the current one?

When authorizing a user, you need to send a letter to all users except for the current (authorized) one. How to implement it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Romanov, 2018-11-13
@fibit

Use the OnAfterUserAuthorize event .
Add CUser::GetList to the handler function, passing the current user ID to the filter as an exception. Well, further in the loop, send letters using CEvent::Send .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question