feat: update primaryRole handling in authStore and adjust context role for clinics

This commit is contained in:
hamed
2026-06-13 18:47:26 +03:30
parent d05c070661
commit 09c393a574
6 changed files with 186 additions and 9 deletions
+1 -1
View File
@@ -628,7 +628,7 @@ class AuthController extends BaseController
'type' => 'clinic',
'db_uuid' => $clinic->getUuid(),
'name' => $clinic->getName() ?? '',
'role' => 'doctor',
'role' => 'clinic',
];
}
}