Fix showing edit buttons when the user does not have the rights to use them
This commit is contained in:
parent
c92062b6a5
commit
0cd9d43a7c
5 changed files with 15 additions and 7 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Reference in a new issue