...
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 |
---|
Code Block |
---|
language | php |
---|
firstline | 69157 |
---|
title | modules\in-commerce\units\orders\orderscore/units/users/users_event_handler.php |
---|
linenumbers | true |
---|
| if ( $event->Name == 'OnUpdate' && $user_id > 0 ) { |
| Code Block |
---|
language | php |
---|
firstline | 69157 |
---|
title | modules\in-commerce\units\orders\orderscore/units/users/users_event_handler.php |
---|
linenumbers | true |
---|
| if ( substr($event->Name, 0, 8) == 'OnUpdate' && $user_id > 0 ) { |
|
Related Discussions
Related Tasks
Jira Legacy |
---|
server | In-Portal Issue TrackerSystem Jira |
---|
columns | key,summary,type,created,updated,due,assignee,reporter,priority,status,resolution |
---|
serverId | 126bf1dc513b375f-b5748291-35223313-8c149d9f-3dd94dfb9de1704c39b1f915 |
---|
key | INP-1527 |
---|
|