Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
BeforeAfter
Code Block
languagephp
firstline69157
titlemodules\in-commerce\units\orders\orderscore/units/users/users_event_handler.php
linenumberstrue
if ( $event->Name == 'OnUpdate' && $user_id > 0 ) {
Code Block
languagephp
firstline69157
titlemodules\in-commerce\units\orders\orderscore/units/users/users_event_handler.php
linenumberstrue
if ( substr($event->Name, 0, 8) == 'OnUpdate' && $user_id > 0 )  {

Related Discussions

Related Tasks

Jira Legacy
serverIn-Portal Issue TrackerSystem Jira
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId126bf1dc513b375f-b5748291-35223313-8c149d9f-3dd94dfb9de1704c39b1f915
keyINP-1527