Forum: User and Integrator
Data Access Management in Customized Model
|
|
Alexander Sinishin 4.Nov.2011 9:09am
Hi Pascal,
My client wants a web application that provides storing private data for users. The admin of the application should be able to customize the structure of data as well as look and fill of forms for entering the data. We planned to use Webiva custom content model & publication features to full fill this customization. Yet, I’ve stumbled with the question how can I make a content model containing the private data for many users. Where users can see only the data of their own. As I see there is no ownership over data rows. Administrator can manage access to data only per table. I am RoR programer. Might I can extend your customizable model? Create a module that would add access management to the customized model. Can you give me a hint how would you resolve this task in Webiva? Thank you, Alexander |
|
|
Pascal Rettig 4.Nov.2011 11:12am
Hi Alexander,
This is doable with the system as it stands, it’s just not-straightforward as the system wasn’t built with that in mind. You can create a content model with a “Belongs to” field and set it to belong to a user. You then will need to create separate, create, edit and list publications. The create publication should have the belongs to field you set up set to a “dynamic field” and set to the current user. The edit publication should have the user field set to “entry value” and “filter” and the “make filter available as input in page connections” checkbox checked. The same should be done for the list publication, with the exception of “entry value” If you drop these paragraphs on a /my-list, /my-list/create and /my-list/edit and hook up the page connections you’ll have per-user data. -Pascal |
|
|
Alexander Sinishin 4.Nov.2011 11:17am
Thank you very much Pascal.
|

