Files
hats-app/app/admin/rbac/user-role/create/page.tsx
T
Ichsan Kurniawan 279b642a7a Apply RBAC permissions across admin and tasks
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.
2026-11-09 17:32:31 +07:00

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} />;
}