fix: allow admins to view unpublished media previews in dashboard
This commit is contained in:
1 parent
a5f40b60b2
commit
71b19b280e
1 file changed
+1
@@ -36,6 +36,7 @@ export async function GET(
|
||||
}
|
||||
|
||||
// CRITICAL: Unpublished media returns 403 for public, but allows admin
|
||||
// This ensures admins can see previews of newly uploaded or deactivated photos in the dashboard.
|
||||
if (!mediaItem.published) {
|
||||
const isAuthenticated = await validateSession(request);
|
||||
if (!isAuthenticated) {
|
||||
|
||||
Reference in new issue
Block a user