Elgg  Version 6.1
Public Member Functions | List of all members
Elgg\Comments\ContainerPermissionsHandler Class Reference

Allow commenting on any container. More...

Public Member Functions

 __invoke (\Elgg\Event $event)
 Allow users to comment on entities not owned by them. More...
 

Detailed Description

Allow commenting on any container.

Since
4.0

Definition at line 10 of file ContainerPermissionsHandler.php.

Member Function Documentation

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

Allow users to comment on entities not owned by them.

Object being commented on is used as the container of the comment so permission check must be overridden if user isn't the owner of the object.

Parameters
\Elgg\Event$event'container_permissions_check', 'object'
Returns
void|true

Definition at line 22 of file ContainerPermissionsHandler.php.


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