Align task pages with access permissions

Use the shared page-permission helper across task routes and gate client creation controls on CREATE_CLIENT. Remove an unused profile permission import.
This commit is contained in:
Ichsan Kurniawan
2026-11-17 21:46:07 +07:00
parent 69a325a376
commit faa22e93e0
8 changed files with 25 additions and 22 deletions
@@ -75,7 +75,7 @@ export default function Client({ clients, actions, initialLayout = 'grid' }: Cli
<p className="text-muted-foreground max-w-sm mx-auto mt-2">
Try to change the filter or create one to get started.
</p>
{actions?.includes('CREATE') &&
{actions?.includes('CREATE_CLIENT') &&
<Button
variant="outline"
className="mt-4"