Elgg
Version 4.3
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
\
Hook
$hook) {
23
24
// is someone trying to comment, if so override permissions check
25
if
($hook->getParam(
'subtype'
) ===
'comment'
&& $hook->getUserParam()
instanceof \ElggUser
) {
26
return
true
;
27
}
28
}
29
}
Elgg\Comments\ContainerPermissionsHandler\__invoke
__invoke(\Elgg\Hook $hook)
Allow users to comment on entities not owned by them.
Definition:
ContainerPermissionsHandler.php:22
Elgg\Comments\ContainerPermissionsHandler
Allow commenting on any container.
Definition:
ContainerPermissionsHandler.php:10
Elgg\Comments
Definition:
AutoSubscribeHandler.php:3
Elgg\Hook
Models an event passed to hook handlers.
Definition:
Hook.php:11
Elgg
Definition:
ActionsService.php:3
ElggUser
elgg ElggUser
Definition:
deprecated.js:453
Generated on Fri Feb 3 2023 00:00:21 for Elgg by
1.8.11