mirror of
https://github.com/yusufipk/OpenFrame.git
synced 2026-09-11 17:46:06 +00:00
refactor(dashboard): centralize access guards and split interactive pages into client components
This commit is contained in:
@@ -95,7 +95,7 @@ export default async function WorkspacePage({ params, searchParams }: WorkspaceP
|
||||
const isAdmin = isOwner || membership?.role === 'ADMIN';
|
||||
|
||||
if (!isOwner && !isMember) {
|
||||
redirect('/workspaces');
|
||||
redirect('/dashboard');
|
||||
}
|
||||
|
||||
const totalPages = Math.ceil(workspace._count.projects / pageSize);
|
||||
|
||||
Reference in New Issue
Block a user