diff --git a/projects/WebMVC/wwwroot/router/shared/details.html b/projects/WebMVC/wwwroot/router/shared/details.html index 7684241c..4472148b 100644 --- a/projects/WebMVC/wwwroot/router/shared/details.html +++ b/projects/WebMVC/wwwroot/router/shared/details.html @@ -54,7 +54,7 @@ }, hasPermission: function (cmd) { var permission = cmd + '-' + this.entity; - return Enumerable.from(store.state.permissions).any(o => o === permission); + return Enumerable.from(store.state.site.permissions).any(o => o === permission); }, getComponent: function (key) { var property = this.data.schema.properties[key]; diff --git a/projects/WebMVC/wwwroot/router/shared/edit.html b/projects/WebMVC/wwwroot/router/shared/edit.html index 290efd15..1e338694 100644 --- a/projects/WebMVC/wwwroot/router/shared/edit.html +++ b/projects/WebMVC/wwwroot/router/shared/edit.html @@ -1,11 +1,16 @@