Elgg  Version master
Public Member Functions | List of all members
Elgg\Comments\EditPermissionsHandler Class Reference

Returns the correct behaviour for editing comments. More...

Public Member Functions

 __invoke (\Elgg\Event $event)
 This makes sure only authors can edit their comments. More...
 

Detailed Description

Returns the correct behaviour for editing comments.

Since
4.0

Definition at line 10 of file EditPermissionsHandler.php.

Member Function Documentation

Elgg\Comments\EditPermissionsHandler::__invoke ( \Elgg\Event  $event)

This makes sure only authors can edit their comments.

Parameters
\Elgg\Event$event'permissions_check', 'object'
Returns
void|boolean Whether the given user is allowed to edit the given comment.

Definition at line 19 of file EditPermissionsHandler.php.


The documentation for this class was generated from the following file: