Fixed error reporting for AJAX tasks if user has no permissions

This commit is contained in:
Matias Griese
2021-04-15 10:11:04 +03:00
parent 7ed36e462e
commit c097eee87f
2 changed files with 3 additions and 2 deletions

View File

@@ -123,7 +123,7 @@ abstract class AdminController
$pages = $this->grav['pages'];
$admin = $this->getAdmin();
return $pages->baseUrl($lang) . $admin->base . trim($route, '/');
return $pages->baseUrl($lang) . $admin->base . $route;
}
/**
@@ -137,7 +137,7 @@ abstract class AdminController
$pages = $this->grav['pages'];
$admin = $this->getAdmin();
return $pages->baseUrl($lang, true) . $admin->base . trim($route, '/');
return $pages->baseUrl($lang, true) . $admin->base . $route;
}
/**