mirror of
https://github.com/ichsankurnia/hats-app.git
synced 2026-12-06 20:06:28 +00:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user