Grant senior_editor oil editing, PDF export, and public recipe management
Some checks failed
PR Preview / teardown-preview (pull_request) Has been skipped
Test / unit-test (push) Successful in 4s
Test / build-check (push) Successful in 3s
PR Preview / test (pull_request) Successful in 4s
PR Preview / deploy-preview (pull_request) Successful in 20s
Test / e2e-test (push) Failing after 1m2s

Add canManage computed (senior_editor + admin) to auth store and use it
for oil edit/delete buttons, PDF export, and public recipe section
visibility. Backend already allowed these operations for senior_editor.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-07 11:59:49 +00:00
parent 2bec4a2d26
commit 6563a6f7d2
3 changed files with 7 additions and 3 deletions

View File

@@ -91,7 +91,7 @@
</div>
<!-- Public Recipes Section (admin/senior_editor only) -->
<div v-if="auth.isAdmin || auth.user.role === 'senior_editor'" class="recipe-section">
<div v-if="auth.canManage" class="recipe-section">
<h3 class="section-title">🌿 公共配方库 ({{ publicRecipes.length }})</h3>
<div class="recipe-list">
<div