set role qstoolbox;
update contract set contract_reference = 'ok ok ok' where id = 2
The above works Query returned successfully: one row affected, 41 msec execution time.
set role user_role;
update contract set contract_reference = ':( :( :(' where id = 2
This one doesn't Query returned successfully: 0 rows affected, 31 msec execution time.
Permissions seem ok, at least its not clear what I'm doing wrong here.
Row level security has been added to this table with
alter table contract enable row level security;
Along with these policies
create policy view_contract on contract for select using(true);
create policy add_contract on contract for insert to user_role with check(true);
create policy delete_contract on contract for delete to user_role using(true);
create policy change_contract on contract for update to user_role with check(true);