Elgg  Version 6.0
Go to the documentation of this file.
1 <?php
3 namespace Elgg\Router\Middleware;
19  protected function assert(\Elgg\Request $request, \Elgg\Router\Route $route): void {
21  // assert we have a logged in user
22  $request->elgg()->gatekeeper->assertAuthenticatedUser();
24  parent::assert($request, $route);
26  if (!$this->page_owner->canEdit()) {
27  throw new EntityPermissionsException();
28  }
29  }
30 }
Definition: livesearch.php:12
c Accompany it with the information you received as to the offer to distribute corresponding source complete source code means all the source code for all modules it plus any associated interface definition plus the scripts used to control compilation and installation of the executable as a special the source code distributed need not include anything that is normally and so on of the operating system on which the executable unless that component itself accompanies the executable If distribution of executable or object code is made by offering access to copy from a designated then offering equivalent access to copy the source code from the same place counts as distribution of the source even though third parties are not compelled to copy the source along with the object code You may not or distribute the Program except as expressly provided under this License Any attempt otherwise to sublicense or distribute the Program is void
Definition: LICENSE.txt:215
Delegates requests to controllers based on the registered configuration.
Definition: Router.php:26
assert(\Elgg\Request $request,\Elgg\Router\Route $route)
Route Wrapper.
Definition: Route.php:8
Thrown when entity can not be edited or container permissions do not allow it to be written...
Request container.
Definition: Request.php:12
Check if the current route page owner can be edited (by the current logged in user) ...
Check if the current route has a page owner entity.