You are not logged in.
Pages: 1
I am working on a project with multiple users that should be grouped wheb they belong to the same company. This so that users from the same company can see each others data. Also I want to add some preferences data (language, timezone etc).
Is it wise to create a new class based on TSQLAuthUser and add the required properties or should I try to put everything in the .Data property?
I'm new to Mormot and also looking into this. For example I have 2 users:
UserID Name
1 John
2 Peter
And a set of reports:
ReportID UserID Name
1 1 Report 1
2 1 Report 2
3 1 Report 3
4 2 Report 1
5 1 Report 2
Now when John asks for /root/report he must only see 1,2 and 3. Peter only 4 and 5.
When they Add a report the UserID must be set by the server, the user should have no idea about that.
Also they should not be able to modify or delete each others reports.
Can this only be done by creating custom service that responds to all requests for GET, PUT, etc.?
Pages: 1