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
Post a Comment