recipes: restrict to-try page to editors, remove addedBy

- Gate page and API on rezepte_users group instead of any logged-in user
- Remove addedBy field from schema, API POST, and ToTryCard display
This commit is contained in:
2026-02-26 19:18:55 +01:00
parent 9ab7342a61
commit dd4680e946
4 changed files with 11 additions and 27 deletions

View File

@@ -9,8 +9,7 @@ const ToTryRecipeSchema = new mongoose.Schema(
label: { type: String, default: '' }
}
],
notes: { type: String, default: '' },
addedBy: { type: String, required: true }
notes: { type: String, default: '' }
},
{ timestamps: true }
);