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

@@ -4,6 +4,7 @@
1. [](#bugfix)
* Regression: Fixed broken plugin/theme installer in admin
* Fixed error reporting for AJAX tasks if user has no permissions
* Fixed missing slash in password reset URL [#2119](https://github.com/getgrav/grav-plugin-admin/issues/2119)
# v1.10.11
## 04/13/2021

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;
}
/**