acc_invoices: роль admin и переключатель роли CFO/accountant/employee; Keycloak: фирменный стиль KH Build
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
-- acc_invoices: роль admin (отладка и тестирование: может переключаться между CFO, accountant и employee)
|
||||
alter table user_roles drop constraint if exists user_roles_role_check;
|
||||
alter table user_roles add constraint user_roles_role_check check (role in ('accountant', 'cfo', 'admin'));
|
||||
insert into user_roles (person_id, role)
|
||||
select id, 'admin' from person where lower(email) in ('yuri@khbuild.pro', 'dmitry@khbuild.pro')
|
||||
on conflict do nothing;
|
||||
Reference in New Issue
Block a user