refactor(auth): simplify authorization checks to use membership only
- Remove explicit ADMIN role checks in API handlers - Replace combined creator/member role checks with membership-only filters - Update seed data roles to reflect changed authorization logic - Add migration to insert hunt creators as members for consistent checks - Prevent removal of hunt creator as a member with new explicit check - Adjust related user role updates and queries accordingly - Upgrade dependencies including nuxt and zod for compatibility
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
// @ts-expect-error weird bun import with nuxt
|
||||
import { describe, expect, it } from 'bun:test';
|
||||
import { checkSlug, parseSlug, type SlugRecord } from './slugcheck';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user