Elgg  Version master
Public Member Functions | Protected Member Functions | List of all members
Elgg\Router\Middleware\PageOwnerCanEditGatekeeper Class Reference

Check if the current route page owner can be edited (by the current logged in user) More...

Inheritance diagram for Elgg\Router\Middleware\PageOwnerCanEditGatekeeper:
Elgg\Router\Middleware\GroupPageOwnerCanEditGatekeeper Elgg\Router\Middleware\UserPageOwnerCanEditGatekeeper

Public Member Functions

 __invoke (\Elgg\Request $request)
 Validate the current request. More...
 

Protected Member Functions

 assertAccess (\Elgg\Request $request, string $type= '', string $subtype= '')
 Validate the current request. More...
 

Detailed Description

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.

Member Function Documentation

Elgg\Router\Middleware\PageOwnerCanEditGatekeeper::__invoke ( \Elgg\Request  $request)

Validate the current request.

Parameters
\Elgg\Request$requestthe 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$requestthe 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: