V1.0.1: Aldenfell campaign seed, content library, party overview
- Seed now resets the database and seeds the Aldenfell campaign from the campaign book: admin DM user, default weapons, locations, bestiary, pre-built encounters, and DM/shared notes - Default weapon/spell/monster library, character profile fields, locations and dice mode (new migration) - Party overview page, pagination, info tips, build preview calc - Remove stale demo-login hint; notes preserve line breaks Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -34,6 +34,12 @@ router.post('/', async (req, res, next) => {
|
||||
if (resolvedCampaignId) {
|
||||
const membership = await loadCampaignMembership(req.user.id, resolvedCampaignId);
|
||||
if (!membership) return res.status(403).json({ error: 'Not a member of this campaign' });
|
||||
|
||||
// A campaign-level (not character-level) DM_ONLY note is the DM's
|
||||
// private scratchpad — only the DM may create one of those.
|
||||
if (visibility === 'DM_ONLY' && !characterId && membership.role !== 'DM') {
|
||||
return res.status(403).json({ error: 'Only the DM can post a DM-only campaign note.' });
|
||||
}
|
||||
}
|
||||
|
||||
const note = await prisma.note.create({
|
||||
|
||||
Reference in New Issue
Block a user