From: Vsevolod (S. I. <si...@cs...> - 2003-11-06 21:06:49
|
Hi, Has anyone tried to implement in SPOPS giving different users different write permissions on different fields. Say, if we have a table of employees, a) the owner of each record is allowed to update his phone number, b) people in HR are allowed to update most other fields, but c) no one is allowed to update the employee number as it's autogenerated. I have not found anything like this in the code or in the mailing list archives. If this functionality is absent in SPOPS, but would be desired and easy to implement, I would not mind adding it. The reason this came up is that in my web apps I try to be generic in how I translate HTML form fields into objects. For a given table, the form fields describing objects in this table have the same name as table column names. However, depending on who is logged in, not all fields should always be saved. This contradicts somewhat the idea of schema-independent persistent code, but I think it's necessary in the real world. Thanks, Simon -- Simon (Vsevolod ILyushchenko) si...@cs... http://www.simonf.com America's business leaders simply don't want to think about complex technology issues - they want to think about golf. Microsoft promises them that. Andrew Grygus, www.aaxnet.com |