mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-10-30 01:36:27 +01:00
Fixed error reporting for AJAX tasks if user has no permissions
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
1. [](#bugfix)
|
1. [](#bugfix)
|
||||||
* Regression: Fixed broken plugin/theme installer in admin
|
* Regression: Fixed broken plugin/theme installer in admin
|
||||||
* Fixed error reporting for AJAX tasks if user has no permissions
|
* 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
|
# v1.10.11
|
||||||
## 04/13/2021
|
## 04/13/2021
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ abstract class AdminController
|
|||||||
$pages = $this->grav['pages'];
|
$pages = $this->grav['pages'];
|
||||||
$admin = $this->getAdmin();
|
$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'];
|
$pages = $this->grav['pages'];
|
||||||
$admin = $this->getAdmin();
|
$admin = $this->getAdmin();
|
||||||
|
|
||||||
return $pages->baseUrl($lang, true) . $admin->base . trim($route, '/');
|
return $pages->baseUrl($lang, true) . $admin->base . $route;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user