1
0

Fix showing edit buttons when the user does not have the rights to use them

This commit is contained in:
kolaente
2021-06-03 16:27:41 +02:00
parent c92062b6a5
commit 0cd9d43a7c
5 changed files with 15 additions and 7 deletions

View File

@ -129,8 +129,7 @@ export default class AbstractService {
* @param route
* @returns object
*/
getRouteReplacements(route) {
let parameters = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}
getRouteReplacements(route, parameters = {}) {
let replace$$1 = {}
let pattern = this.getRouteParameterPattern()
pattern = new RegExp(pattern instanceof RegExp ? pattern.source : pattern, 'g')