|
@@ -180,7 +180,7 @@ |
|
|
block discarded – undo |
|
180
|
180
|
private function getIsAdmin(HTTPRequest $request) |
|
181
|
181
|
{ |
|
182
|
182
|
$adminPaths = static::config()->get('admin_url_paths'); |
|
183
|
|
- $adminPaths[] = AdminRootController::config()->get('url_base') . '/'; |
|
|
183
|
+ $adminPaths[ ] = AdminRootController::config()->get('url_base') . '/'; |
|
184
|
184
|
$currentPath = rtrim($request->getURL(), '/') . '/'; |
|
185
|
185
|
foreach ($adminPaths as $adminPath) { |
|
186
|
186
|
if (substr($currentPath, 0, strlen($adminPath)) === $adminPath) { |
Please login to merge, or discard this patch.