permissions
This commit is contained in:
@@ -5,11 +5,12 @@
|
||||
|
||||
export let schema;
|
||||
const channel = getContext("channel");
|
||||
const readableSchemas = getContext("readableSchemas");
|
||||
const user = getContext("user");
|
||||
|
||||
let contentIsOpen = false;
|
||||
const fileSchemas = channel.schemas.filter((sc) => sc.type === "files");
|
||||
const otherSchemas = channel.schemas.filter((sc) => !sc.isEntry && sc.type === "collection");
|
||||
const fileSchemas = readableSchemas.filter((sc) => sc.type === "files");
|
||||
const otherSchemas = readableSchemas.filter((sc) => !sc.isEntry && sc.type === "collection");
|
||||
|
||||
</script>
|
||||
|
||||
@@ -57,7 +58,7 @@
|
||||
aria-labelledby="panelsStayOpen-headingMain">
|
||||
<div class="accordion-body">
|
||||
<NavbarMenu
|
||||
schemas={ channel.schemas.filter((sc) => sc.isEntry)}
|
||||
schemas={ readableSchemas.filter((sc) => sc.isEntry)}
|
||||
schema={schema}
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user