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:
+3
-3
@@ -33,7 +33,7 @@
|
||||
"eslint": "^9.0.0",
|
||||
"h3-zod": "^0.5.3",
|
||||
"minio": "^8.0.5",
|
||||
"nuxt": "^4.0.1",
|
||||
"nuxt": "4.1.0",
|
||||
"nuxt-auth-utils": "^0.5.22",
|
||||
"pinia": "^3.0.3",
|
||||
"pinia-plugin-persistedstate": "^4.5.0",
|
||||
@@ -43,10 +43,10 @@
|
||||
"vue": "^3.5.18",
|
||||
"vue-matomo": "^4.2.0",
|
||||
"vue-router": "^4.5.1",
|
||||
"zod": "^4.0.0"
|
||||
"zod": "^4.4.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@nuxt/devtools": "^2.6.2",
|
||||
"@nuxt/devtools": "^2.6.4",
|
||||
"@types/bun": "^1.2.20",
|
||||
"prettier": "^3.6.2",
|
||||
"prettier-plugin-organize-imports": "^4.2.0",
|
||||
|
||||
Reference in New Issue
Block a user