Skip to content

Commit

Permalink
fix(pages): fixes typo in page permissions handler
Browse files Browse the repository at this point in the history
  • Loading branch information
hypeJunction committed Nov 26, 2015
1 parent 5d57338 commit 3bf7eec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion start.php
Expand Up @@ -192,7 +192,7 @@ function roles_pages_permissions($hook, $type, $route) {
$identifier = elgg_extract('identifier', $route, elgg_extract('handler', $route));
array_unshift($segments, $identifier);

$result = roles()->pageGatekeeper($role, implode('/', $identifier));
$result = roles()->pageGatekeeper($role, implode('/', $segments));

$error = elgg_extract('error', $result);
$forward = elgg_extract('forward', $result);
Expand Down

0 comments on commit 3bf7eec

Please sign in to comment.