Naanan
asked on
Document Library Add Error
I have a WSS site and a document library. The issue is that my client wants the users to have Add capability but not Edit capability. "Require documents to be checked out before they can be edited?" is selected. When a user submits a document they get an access denied error, the document in is the "Checked out documents" section though. It would appear that the Check in process is part of the Edit permissions. Is there a way I can use an event receiver On Adding to change the Checked in property to true?
I have been hearing conflicting results and I would rather not get four hours in only to find out that in fact you can't do this.
I have been hearing conflicting results and I would rather not get four hours in only to find out that in fact you can't do this.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Not exactly sure what's with your checking in/out issue, but I don't think its important (correct me if I am wrong).
Yes, basically you are setting permissions at a item level via the event handler every time someone contributes a new document.
Yes, basically you are setting permissions at a item level via the event handler every time someone contributes a new document.
ASKER
It is kind of important as one of my clients wants to give people permissions to add documents to a library yet prevent them from editing the documents and they want to make sure that the documents are checked out if they are going to be edited.
I can solve the issue as you state, with an event receiver but I was hoping there was another way around that as our permissions are really complicated (not the best of situations) but this may be the way to handle it.
I will get to cracking and thanks for your support with this issue.
I can solve the issue as you state, with an event receiver but I was hoping there was another way around that as our permissions are really complicated (not the best of situations) but this may be the way to handle it.
I will get to cracking and thanks for your support with this issue.
ASKER
I could try the event receiver but wouldn't the permissions have to be set on each individual document. Not that that is an issue I am just trying to confirm what you were stating.