fix(products): canManage no longer requires ADMIN role
Any user with manage_products permission (including MANAGER) can now edit, deactivate, and delete products. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
982a114eb5
commit
80fa1ea63c
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ export default async function AdminProductsPage() {
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const canManage = hasPermission(session.user.role, "manage_products") && session.user.role === "ADMIN";
|
const canManage = hasPermission(session.user.role, "manage_products");
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ProductsTable
|
<ProductsTable
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue