Skip to content
Permalink
Browse files

Allow the home controller too

  • Loading branch information...
Ryan Thompson
Ryan Thompson committed Jan 31, 2018
1 parent 55d6615 commit f7453fc30452947d1cab17e2a77e328c01a99051
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Http/Middleware/AuthorizeModuleAccess.php
@@ -50,7 +50,7 @@ public function __construct(ModuleCollection $modules, Authorizer $authorizer)
*/
public function handle(Request $request, Closure $next)
{
if ($request->segment(1) !== 'admin' || in_array($request->path(), ['admin/login', 'admin/logout'])) {
if ($request->segment(1) !== 'admin' || in_array($request->path(), ['admin/login', 'admin/logout', 'admin'])) {
return $next($request);
}

0 comments on commit f7453fc

Please sign in to comment.
You can’t perform that action at this time.