Plugin/Events/Privacy

From Joomla! Documentation

Revision as of 22:07, 27 May 2019 by Wilsonge (talk | contribs) (Create page and document first event)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Events of Privacy

onPrivacyCanRemoveData

Description

This method is used to determine if the user can remove data on a user request. For example in Joomla core it forbids the user object being removed if the user is a super user.

Parameters

  • PrivacyTableRequest The request record being processed.
  • JUser The user object of the user requesting record removal.

Return Value

A list of PrivacyRemovalStatus objects. The property canRemove will be checked and the request will be blocked if any of these properties is true. The reason for the first failed plugin will be shown to the user running the deletion.

Called in files

  • administrator/components/com_privacy/models/remove.php