Fix GUC names using the old syntax
This commit is contained in:
committed by
Steve Chavez
parent
c46c3b7a86
commit
d5fb73bf9b
+1
-1
@@ -212,7 +212,7 @@ First make a new schema and add the function:
|
||||
language plpgsql
|
||||
as $$
|
||||
begin
|
||||
if current_setting('request.jwt.claim.email', true) =
|
||||
if current_setting('request.jwt.claims', true)::json->>'email' =
|
||||
'disgruntled@mycompany.com' then
|
||||
raise insufficient_privilege
|
||||
using hint = 'Nope, we are on to you';
|
||||
|
||||
Reference in New Issue
Block a user