Project

General

Profile

Actions

Feature #108

closed

管理者権限と店舗薬剤師の閲覧権限を分ける

Added by 關山 和丈 9 months ago. Updated 6 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Start date:
07/12/2025
Due date:
07/12/2025
% Done:

0%

Estimated time:
6:00 h
Spent time:

Description

① Administratorモデルを削除してPharmacistモデルへ管理権限付与 2hr
✅ Rails - pharmacists テーブル追加(email, password, pharmacy_id, administrator_idなど)

  • devise-token-auth対応モデル化
  • /api/v1/pharmacists POST/GET等のAPIエンドポイント作成

② 薬剤師アカウントの登録機能を実装 2hr
✅ Next.js - 管理者ログイン後にアクセスできる設定画面にて

  • 薬剤師のメール・パスワード・薬局の選択フォーム実装
  • Rails API /api/v1/pharmacists にPOST
  • 現在のpages.tsxをlayoutへ変更して設定クリック後に修正画面表示

③ 管理者紐付けのある薬剤師ユーザーに店舗選択画面を表示 2hr
✅ Next.js - currentUser.administrator_id の有無で分岐

  • 管理者紐付きなら /pharmacy_selector にリダイレクト
  • 管理者非紐付きなら /pharmacies/:id/dashboard へ

Files

clipboard-202505180054-aemqa.png (18.8 KB) clipboard-202505180054-aemqa.png 關山 和丈, 05/17/2025 03:54 PM
Actions #1

Updated by 關山 和丈 9 months ago

  • Due date changed from 06/13/2025 to 06/09/2025
  • Start date changed from 06/13/2025 to 06/09/2025
Actions #3

Updated by 關山 和丈 8 months ago

  • Due date changed from 06/09/2025 to 07/12/2025
  • Start date changed from 06/09/2025 to 07/12/2025
Actions #4

Updated by 關山 和丈 7 months ago

  • Subject changed from pharmacistsテーブルを新設し、全店舗閲覧権限と薬局別権限を明確化 to 管理者権限と店舗薬剤師の閲覧権限を分ける
Actions #5

Updated by 關山 和丈 6 months ago

  • Description updated (diff)
  • Estimated time changed from 3:00 h to 5:00 h
Actions #6

Updated by 關山 和丈 6 months ago

  • Description updated (diff)
Actions #7

Updated by 關山 和丈 6 months ago

  • Description updated (diff)
Actions #8

Updated by 關山 和丈 6 months ago

  • Description updated (diff)
  • Estimated time changed from 5:00 h to 6:00 h
Actions #9

Updated by 關山 和丈 6 months ago

  • Description updated (diff)
Actions #10

Updated by 關山 和丈 6 months ago

  • Description updated (diff)
Actions #11

Updated by 關山 和丈 6 months ago

  • Description updated (diff)
Actions #12

Updated by 關山 和丈 6 months ago

  • Description updated (diff)
Actions #13

Updated by 關山 和丈 6 months ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF