Make sure to respect board acls in the frontend all over the place

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2020-01-25 13:37:17 +01:00
parent 7fd8419fa9
commit 1a874ba79b
11 changed files with 150 additions and 71 deletions

View File

@@ -33,7 +33,10 @@
<TagsTabSidebar :board="board" />
</AppSidebarTab>
<AppSidebarTab :order="2" name="Deleted items" icon="icon-delete">
<AppSidebarTab v-if="canEdit"
:order="2"
name="Deleted items"
icon="icon-delete">
<DeletedTabSidebar :board="board" />
</AppSidebarTab>
@@ -44,7 +47,7 @@
</template>
<script>
import { mapState } from 'vuex'
import { mapState, mapGetters } from 'vuex'
import SharingTabSidebar from './SharingTabSidebar'
import TagsTabSidebar from './TagsTabSidebar'
import DeletedTabSidebar from './DeletedTabSidebar'
@@ -73,6 +76,7 @@ export default {
board: state => state.currentBoard,
labels: state => state.labels,
}),
...mapGetters(['canEdit']),
},
methods: {
closeSidebar() {