mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: auth exceptions + roles with user object
This commit is contained in:
parent
23c4224b2b
commit
143f21b70b
11 changed files with 74 additions and 68 deletions
|
|
@ -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>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue