By default, Windows sharepint service 3.0 (or MOSS) does not support field-level permissions. During the implementation of the project, the customer often raises this requirement.
There are two solutions:
1) develop custom fields and add control logic to the fields.
Advantage: you can completely control the display and editing.
Disadvantage: you cannot enable permission Control for system fields. In addition, you need to overwrite all fields of the system, which requires a lot of work.
2) rewrite the listfielditerator control in the system template (this control is used to generate the field editing table on the form page) to implement field permission control.
Advantage: All types of fields can be controlled.
Disadvantage: you cannot completely control the reading of fields-you cannot control the display of fields on the list page.
In combination, we decided to adopt solution 2. Since the field reading cannot be fully controlled, this solution only controls field editing.
I have been trying to implement this solution. Today, I finally finished it and packaged it into a standard WSP package. If you are engaged in WSS Or Moss development, you can try it out.
Codeart WSS field editing permission control solution implements permission Control for WSS (MOSS) List and library field editing,
You can precisely control which users can edit a field. Provides a friendly setting interface.
Instructions for use:
1) install the solution
Modify set site_url = "http: // localhost: 81" in install. cmd, set 81 to the actual website port, and then run install. cmd.
2) Deployment Solution
After running install. cmd, it is automatically deployed to the configured site. to deploy it to another site, log on to the Management Center> operations> solution management to deploy the site.
3) test
Go to the "List Settings" interface of any list. You can see the link for setting the field permissions.
-----------------------------
Field permission settings:
All personnel: users with the permission to edit items can edit fields.
Creator: the creator of the item can edit fields.
Specified user: the specified user can edit fields.
By default, all users and creators have the edit permission.
The website administrator can edit all fields, so do not use the Administrator account during testing.
Interface effect:
List settings:
Field permission settings:
The title is read-only and the content can be edited:
Please try it out. Download solution:
Codeart_fieldrightsolution.zip
Postscript:
The latest code is compiled on codeplex: codeart
SharePoint permission extension 1.0 Beta publish