Commit b62d698f authored by Nicolas Widart's avatar Nicolas Widart

Cleaning up the filter helper

parent 0cc46021
...@@ -33,8 +33,7 @@ class PermissionFilter ...@@ -33,8 +33,7 @@ class PermissionFilter
$segmentPosition = 2; $segmentPosition = 2;
if ($request->segment($segmentPosition) == Config::get('core::core.admin-prefix')) { if ($request->segment($segmentPosition) == Config::get('core::core.admin-prefix')) {
$segmentPosition++; return ++$segmentPosition;
return $segmentPosition;
} }
return $segmentPosition; return $segmentPosition;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment