Link to home
Start Free TrialLog in
Avatar of Naanan
NaananFlag for United States of America

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.
ASKER CERTIFIED SOLUTION
Avatar of quihong
quihong
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Naanan

ASKER

if remove the requirement "Require documents to be checked out before they can be edited?", the users with add permissions can add documents without issue. As soon as I set it the other way the users without Edit permissions are given a permissions error. This is what led me to believe that the act of "Checking In" a document is covered by the edit permissions. If this is not infact the case I don't have another explanation for the behaviour.

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.
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.
Avatar of Naanan

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.