c# - user rights to add document in library SharePoint 2010 -


i want check, if user can add document in document library custom action enabled. used this article.

and encountered following problem: don't know how check user rights of adding library.

i try use spgroup of current web, need know names of groups, , names not constant. can roles of current user, how can information set of roles contain role of type sproletype.contributor?

i grateful attempt help!

yeah, found solution!

bool t = list.permissions.doesuserhavepermissions(sprights.addlistitems)  

return true if user can add document library!


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -