feat: auth exceptions + roles with user object

This commit is contained in:
swve 2022-11-19 20:19:56 +01:00
parent 23c4224b2b
commit 143f21b70b
11 changed files with 74 additions and 68 deletions

View file

@ -1,6 +1,5 @@
import Link from "next/link";
import React from "react";
import AuthenticatedOnly from "../../components/security/AuthenticatedOnly";
import Layout from "../../components/ui/Layout";
import { Title } from "../../components/ui/styles/Title";
import { deleteOrganizationFromBackend, getUserOrganizations } from "../../services/orgs";
@ -33,7 +32,6 @@ const Organizations = () => {
return (
<Layout>
<AuthenticatedOnly>
<Title>
Your Organizations{" "}
<Link href={"/organizations/new"}>
@ -61,7 +59,6 @@ const Organizations = () => {
))}
</div>
)}
</AuthenticatedOnly>
</Layout>
);