Grant execute to guest for function to_price
It is required when showing the prices of campsite types on the public section of the web.
This commit is contained in:
parent
60a488b7a0
commit
0611e95ea1
|
@ -28,6 +28,7 @@ comment on function to_price(integer, integer) is
|
|||
'Converts the cents to a price representation, without currency and any other separater than decimal.';
|
||||
|
||||
revoke execute on function to_price(integer, integer) from public;
|
||||
grant execute on function to_price(integer, integer) to guest;
|
||||
grant execute on function to_price(integer, integer) to employee;
|
||||
grant execute on function to_price(integer, integer) to admin;
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ select function_lang_is('camper', 'to_price', array ['integer', 'integer'], 'plp
|
|||
select function_returns('camper', 'to_price', array ['integer', 'integer'], 'text');
|
||||
select isnt_definer('camper', 'to_price', array ['integer', 'integer']);
|
||||
select volatility_is('camper', 'to_price', array ['integer', 'integer'], 'immutable');
|
||||
select function_privs_are('camper', 'to_price', array ['integer', 'integer'], 'guest', array []::text[]);
|
||||
select function_privs_are('camper', 'to_price', array ['integer', 'integer'], 'guest', array ['EXECUTE']);
|
||||
select function_privs_are('camper', 'to_price', array ['integer', 'integer'], 'employee', array ['EXECUTE']);
|
||||
select function_privs_are('camper', 'to_price', array ['integer', 'integer'], 'admin', array ['EXECUTE']);
|
||||
select function_privs_are('camper', 'to_price', array ['integer', 'integer'], 'authenticator', array []::text[]);
|
||||
|
|
Loading…
Reference in New Issue