You are not logged in.
Pages: 1
Hi all,
Does anybody have example of how to implement per row access to table data using this framework?
Alexander
Offline
What do you mean?
Did you check http://synopse.info/files/html/Synopse% … l#TITLE_71 ?
Offline
Sorry, it wasn't clear. I need to have row level security for users. For example, in your '26 - RESTful ORM' sample I'd like to add e.g. field Owner:
TSQLNote = class(TSQLRecordWithModTimeAndMetaData)
protected
fIdent: RawUTF8;
fKind: TSQLNoteKind;
fParent: TSQLNote;
fOwner: TSQLUser;
published
property Ident: RawUTF8 read fIdent write fIdent;
property Kind: TSQLNoteKind read fKind write fKind;
property Parent: TSQLNote read fParent write fParent;
property Owner: TSQLUser read fOwner write fOwner;
end;
and then show records that authenticated User own. Should I add to TSQLNote my own function for such filtering or I should do something else? Thanks in advance for your help.
Alexander
Offline
How did you resolve this problem. I have the same problem. I need a row level security, 'CreateAndFillPrepare() with a 'Owner=?' that is i'm doing, but if user knows the way to use the REST API via Javascript for instance he can list all table without limitation. How can I manage this?
Last edited by turrican (2016-10-06 09:33:24)
Offline
Pages: 1