-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NoAccess page for Annuncements and Workspaces
- Loading branch information
1 parent
e8bdfc4
commit 85916e1
Showing
3 changed files
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
<script> | ||
import Announcements from '$src/lib/components/announcements/Main.svelte'; | ||
import NoAccess from '$src/lib/components/common/PageUnavailable.svelte'; | ||
export let data; | ||
</script> | ||
|
||
<Announcements {data} view={'admin'} /> | ||
<!-- On the assumption each user has an organisation (besides admin) --> | ||
{#if data.organisation === undefined} | ||
<NoAccess /> | ||
{:else} | ||
<Announcements {data} view={'admin'} /> | ||
{/if} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters