Skip to content

Commit

Permalink
Allow the home controller too
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Thompson committed Jan 31, 2018
1 parent 55d6615 commit f7453fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Middleware/AuthorizeModuleAccess.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit f7453fc

Please sign in to comment.