Monday, February 21, 2011

Not allow user to delete document in library

Hi Everyone, I want to develop a solution,not allow any user to delete document in library. Can I do this client side? Thanks

From stackoverflow
  • One option is to setup permissions so the user cannot delete items. If you need to do something programatically, there is an ItemDeleting even that fires (server side) whenever an item is being deleted that you could then implement any kind of custom logic your application rules require. More info on ItemDeleting from Wrox

    John

  • You also could define a retention policy on the document library - if you go to settings you'll find the Information management policy settings - however I agree with John and I think managing permissions is the correct way to go.

0 comments:

Post a Comment