
This revamps the whole access control system to use a separate ACL instead of relying on the "owner" field of the survey, allowing more granular definitions of access to surveys (cloning, editing, viewing results etc.) Closes #17
12 lines
318 B
Svelte
12 lines
318 B
Svelte
<script lang="ts">
|
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
|
|
const { children, class: cls, ...rest }: HTMLAttributes<HTMLDivElement> = $props();
|
|
</script>
|
|
|
|
<div
|
|
class="bold mx-auto max-w-xl border-2 border-red-700 bg-red-100 text-center text-red-500 {cls}"
|
|
{...rest}
|
|
>
|
|
{@render children?.()}
|
|
</div>
|