Elgg
Version 6.1
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
Elgg
Comments
ContainerPermissionsHandler.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Elgg\Comments
;
4
10
class
ContainerPermissionsHandler
{
11
22
public
function
__invoke
(\
Elgg
\
Event
$event) {
23
24
// is someone trying to comment, if so override permissions check
25
if
($event->getParam(
'subtype'
) ===
'comment'
&& $event->getUserParam() instanceof \ElggUser) {
26
return
true
;
27
}
28
}
29
}
Elgg\Comments\ContainerPermissionsHandler
Allow commenting on any container.
Definition:
ContainerPermissionsHandler.php:10
Elgg\Comments\ContainerPermissionsHandler\__invoke
__invoke(\Elgg\Event $event)
Allow users to comment on entities not owned by them.
Definition:
ContainerPermissionsHandler.php:22
Elgg\Comments
Definition:
AutoSubscribeHandler.php:3
Elgg
Definition:
ActionsService.php:3
Elgg\Event
Models an event passed to event handlers.
Definition:
Event.php:11
Generated on Wed Dec 4 2024 00:00:20 for Elgg by
1.8.11