feat: implement board access control (#349)
* feat: implement board access control * fix: deepsource issues * wip: address pull request feedback * chore: address pull request feedback * fix: format issue * test: improve tests * fix: type and lint issue * chore: address pull request feedback * refactor: rename board procedures
This commit is contained in:
8
apps/nextjs/src/components/board/permissions/server.ts
Normal file
8
apps/nextjs/src/components/board/permissions/server.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { auth } from "@homarr/auth";
|
||||
import type { BoardPermissionsProps } from "@homarr/auth/shared";
|
||||
import { constructBoardPermissions } from "@homarr/auth/shared";
|
||||
|
||||
export const getBoardPermissions = async (board: BoardPermissionsProps) => {
|
||||
const session = await auth();
|
||||
return constructBoardPermissions(board, session);
|
||||
};
|
||||
Reference in New Issue
Block a user