Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Sorry ,this site hasn't been shared with you when uplaoding the document

$
0
0

hi,

I am  breaking permissions on the sub site level and document library level. i have added a user at the  sub site level with Contribute permissions and Read permission at the Doument Library level.

now i have created a   visual web part with upload functionality programmatically with few metadata columns such that he  will be able to upload the document and  it will park it on the document library.

1) Now, when the user who has Contribute permissions on the sub site and read permissions at the doc lib level tries to upload the document through my custom web part,  ia m getting access denied error.

can anyone tell, what am missing/ where should i make changes in the code,if required? am not using RunwithElevated privileges delegate in my web part.

2)Also just wanna know, if a user has contribute permission on the subsite and Read permission on the doc lib level , will  he be able to  upload a document into that document library?




Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>