Skip to content

Commit

Permalink
관리자 등급의 사용자가 관리자 페이지 접속할 때 settings url로 접속이 안되는 문제 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
woongbin committed Nov 26, 2018
1 parent a428a7b commit 83381f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/Xpressengine/Settings/SettingsMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ protected function checkPermission(Request $request)
}

$route = $request->route();
if ($route->getName() === 'settings.dashboard' && $user->getRating() === Rating::MANAGER) {
if (($route->getName() === 'settings' || $route->getName() === 'settings.dashboard')
&& $user->getRating() === Rating::MANAGER) {
return;
}

Expand Down

0 comments on commit 83381f6

Please sign in to comment.