mirror of
https://github.com/ichsankurnia/hats-app.git
synced 2026-12-05 11:06:29 +00:00
279b642a7a
Enforce page access and action-level permissions across admin and task views, including exports and record actions. Move user creation to a client component behind server-side permission checks, standardize data fetching, and remove the deprecated user-role route.
14 lines
453 B
TypeScript
14 lines
453 B
TypeScript
import { type Metadata } from 'next';
|
|
import { getAccessPagePermission } from '@/lib/get-access-data';
|
|
import RoleForm from '../component/RoleForm';
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Create Role | Admin",
|
|
description: "Create a new user role with custom menu permissions",
|
|
};
|
|
|
|
export default async function CreateRolePage() {
|
|
await getAccessPagePermission('/rbac/user-role', 'CREATE');
|
|
return <RoleForm isUpdate={false} />;
|
|
}
|