Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/server/routes/activitypub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ export function createActivityPubRoutes(apService: ActivityPubService, db: Datab

// SECURITY FIX: Check if restricted admin owns this note
const request = req as AuthenticatedRequest;
if (!request.isRootAdmin && note.artist_id !== request.artistId) {
if (!request.isRootAdmin && Number(note.artist_id) !== Number(request.artistId)) {
console.warn(`⛔ Access Denied: Artist ${request.artistId} tried to delete note ${noteId} owned by Artist ${note.artist_id}`);
return res.status(403).send("Access denied");
}
Expand Down