···11-import { publicClient } from "../config.ts";
11+import { publicClient, ADMIN_DID } from "../config.ts";
22import { buildAtUri } from "../utils/at-uri.ts";
33import { getSlice } from "../lib/api.ts";
44import type { AuthenticatedUser } from "./middleware.ts";
···7979 try {
8080 const slice = await getSlice(publicClient, sliceUri);
81818282- // User has access if they own the slice
8282+ // User has access if they own the slice or are an admin
8383 const hasAccess = context.currentUser.isAuthenticated &&
8484- context.currentUser.sub === profileDid;
8484+ (context.currentUser.sub === profileDid || context.currentUser.sub === ADMIN_DID);
85858686 return {
8787 ...context,