feat: agregar control de visibilidad del total tarifado
This commit is contained in:
@@ -162,7 +162,10 @@ as $$
|
||||
'description', p.description,
|
||||
'status', p.status,
|
||||
'internal_amount', case
|
||||
when lower(coalesce(auth.jwt() ->> 'email', '')) = 'gmarrero@gomezleemarketing.com'
|
||||
when lower(coalesce(auth.jwt() ->> 'email', '')) in (
|
||||
'gmarrero@gomezleemarketing.com',
|
||||
'iaracena@gomezleemarketing.com'
|
||||
)
|
||||
then to_jsonb(p.internal_amount)
|
||||
else 'null'::jsonb
|
||||
end,
|
||||
|
||||
Reference in New Issue
Block a user