Simulating field-level permissions via stored SQL functions?

Started by Neal Lindsayover 24 years ago2 messagesgeneral
Jump to latest
#1Neal Lindsay
neal.lindsay@peaofohio.com

I think that the subject line explains what I am trying to do. How can I
create a stored function (in SQL, if that matters) that a user can call to
update data in a table to which they normally only have read access?

Thanks,
Neal Lindsay

#2Bruce Richardson
brichardson@lineone.net
In reply to: Neal Lindsay (#1)
Re: Simulating field-level permissions via stored SQL functions?

On Fri, Aug 17, 2001 at 02:41:47PM -0400, Neal Lindsay wrote:

I think that the subject line explains what I am trying to do. How can I
create a stored function (in SQL, if that matters) that a user can call to
update data in a table to which they normally only have read access?

By using a view. Triggers and rules attached to a view are executed
with the uid of the view owner.

--
Bruce

Anyone who slaps a 'this page is best viewed with Browser X' label on a
Web page appears to be yearning for the bad old days, before the Web...
-- Tim Berners-Lee