Add practitioners admin and staff-scoped Care UX.
Deploy Ladill Care / deploy (push) Successful in 43s
Deploy Ladill Care / deploy (push) Successful in 43s
Hospital admins can manage assignable doctors and invite team members from Ladill mailboxes; invited staff only see Care tools they need. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -52,5 +52,20 @@ class AppServiceProvider extends ServiceProvider
|
||||
View::composer(['partials.topbar'], function ($view) {
|
||||
$view->with(\App\Support\MobileTopbar::resolve());
|
||||
});
|
||||
|
||||
View::composer(['partials.launcher', 'partials.topbar-desktop-widgets', 'components.app-layout'], function () {
|
||||
$user = auth()->user();
|
||||
if (! $user || session()->has(\App\Support\StaffUx::SESSION_KEY)) {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
$access = app(\App\Services\Identity\IdentityTeamClient::class)
|
||||
->appAccess($user->ownerRef());
|
||||
\App\Support\StaffUx::remember($access);
|
||||
} catch (\Throwable) {
|
||||
// Leave fail-open defaults until Identity is available.
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user