feat(tags): enhance tag management with permission checks

- Integrated user permissions for tag creation, updating, and deletion in the TagManager component.
- Updated API routes to enforce permission checks for tag operations.
- Added new permissions for managing tags in the roles configuration.
- Improved error handling for unauthorized access in tag-related operations.
This commit is contained in:
Mauricio Siu
2026-03-19 01:27:54 -06:00
parent aca1c6f621
commit fff91157c4
6 changed files with 127 additions and 40 deletions

View File

@@ -84,11 +84,9 @@ export const apiCreateTag = createSchema.pick({
color: true,
});
export const apiFindOneTag = createSchema
.pick({
tagId: true,
})
.required();
export const apiFindOneTag = z.object({
tagId: z.string().min(1),
});
export const apiRemoveTag = createSchema
.pick({