Check if the current route page owner can be edited (by the current logged in user)
More...
Check if the current route page owner can be edited (by the current logged in user)
- Since
- 3.2
Definition at line 13 of file PageOwnerCanEditGatekeeper.php.
Elgg\Router\Middleware\PageOwnerCanEditGatekeeper::__invoke |
( |
\Elgg\Request |
$request | ) |
|
Validate the current request.
- Parameters
-
\Elgg\Request | $request | the current request |
- Returns
- void
- Exceptions
-
EntityPermissionsException | |
Definition at line 23 of file PageOwnerCanEditGatekeeper.php.
Elgg\Router\Middleware\PageOwnerCanEditGatekeeper::assertAccess |
( |
\Elgg\Request |
$request, |
|
|
string |
$type = '' , |
|
|
string |
$subtype = '' |
|
) |
| |
|
protected |
Validate the current request.
- Parameters
-
\Elgg\Request | $request | the current request |
string | $type | (optional) the required type of the page owner |
string | $subtype | (optional) the required subtype of the page owner |
- Returns
- void
- Exceptions
-
EntityPermissionsException | |
Definition at line 37 of file PageOwnerCanEditGatekeeper.php.
The documentation for this class was generated from the following file: