From 6acecccc6eb7517154d4919360b5476927da2f62 Mon Sep 17 00:00:00 2001 From: Sean Engelhardt Date: Fri, 8 Mar 2019 12:16:02 +0100 Subject: [PATCH] Motion block permission fixes Adds fixes to motion block permission checks. Users with "Can See motion" Can see motion blocks in list view The menu-column in motion blocks list will be completely hidden without "Motion Can Manage" permissions In motion block list view, the motion will be displayed with identifier rather than just the title --- .../motion-block-detail/motion-block-detail.component.html | 4 +++- .../motion-block-list/motion-block-list.component.ts | 5 ++++- .../components/motion-list/motion-list.component.html | 4 ++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/client/src/app/site/motions/modules/motion-block/components/motion-block-detail/motion-block-detail.component.html b/client/src/app/site/motions/modules/motion-block/components/motion-block-detail/motion-block-detail.component.html index 86be55629..e3fb0dacf 100644 --- a/client/src/app/site/motions/modules/motion-block/components/motion-block-detail/motion-block-detail.component.html +++ b/client/src/app/site/motions/modules/motion-block/components/motion-block-detail/motion-block-detail.component.html @@ -45,7 +45,9 @@ Motion - {{ motion.title }} + + {{ motion.getTitle() }} + diff --git a/client/src/app/site/motions/modules/motion-block/components/motion-block-list/motion-block-list.component.ts b/client/src/app/site/motions/modules/motion-block/components/motion-block-list/motion-block-list.component.ts index 9b56490f7..1fcd1a2e8 100644 --- a/client/src/app/site/motions/modules/motion-block/components/motion-block-list/motion-block-list.component.ts +++ b/client/src/app/site/motions/modules/motion-block/components/motion-block-list/motion-block-list.component.ts @@ -122,10 +122,13 @@ export class MotionBlockListComponent extends ListViewBaseComponentdevice_hub Categories + +
+
+