#19 トップバーと新規作成ちょっとだけ

This commit is contained in:
2025-06-10 01:23:24 +09:00
parent 39dce3a39f
commit 5b8a560024
10 changed files with 327 additions and 67 deletions
@@ -36,9 +36,6 @@ class PostsController < ApplicationController
# POST /posts
def create
logger.info ">>> thumbnail: #{params[:thumbnail]&.content_type}"
logger.info ">>> filename: #{params[:thumbnail]&.original_filename}"
return head :unauthorized unless current_user
return head :forbidden unless ['admin', 'member'].include?(current_user.role)