Fix nurse onboarding redirects and specialty Documents 404s.
Deploy Ladill Care / deploy (push) Successful in 36s
Deploy Ladill Care / deploy (push) Successful in 36s
Resolve staff memberships by invite/demo email as well as public_id so nurses stay on their employer org; block staff from owner onboarding; keep Documents viewable with module access while upload stays manage-gated. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -25,6 +25,11 @@ class EnsureOrganizationSetup
|
||||
}
|
||||
|
||||
if (! $this->organizations->isOnboarded($user)) {
|
||||
// Staff already attached to a tenant must not see owner onboarding.
|
||||
if ($this->organizations->membershipFor($user)) {
|
||||
abort(403, 'Your facility setup is incomplete. Ask an administrator to finish onboarding.');
|
||||
}
|
||||
|
||||
return redirect()->route('care.onboarding.show');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user