Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

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
BeforeAfter
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 )  {

Related Tasks

Error rendering macro 'jira' : Unable to locate Jira server for this macro. It may be due to Application Link configuration.

  • No labels