/
User's profile update via AJAX support [5.3.0-B1]
User's profile update via AJAX support [5.3.0-B1]
On the Front-End the "u:OnUpdate
" event is used to update user's profile.
To support profile update via AJAX (without page reload) the "u:OnUpdateAjax
" event needs to be added.
Solution
- add the "
OnUpdateAjax
" event to the "UsersEventHandler
" class - change the "
UsersEventHandler::CheckPermission
" method to make all "OnUpdate*
" event to be checked for ownership
Before | After |
---|---|
core/units/users/users_event_handler.php if ( $event->Name == 'OnUpdate' && $user_id > 0 ) { | core/units/users/users_event_handler.php if ( substr($event->Name, 0, 8) == 'OnUpdate' && $user_id > 0 ) { |