开发者

Is it possible in "document list" to control whether a user permitted to see the document,Different permissions for each document in the list

is it possible in "document list" to control whether a user primted to see the document,

Differen开发者_开发技巧t permissions for each document in the list is it possible to do from in side a wepart code or from a workflow code


Yes, you can give individual permissions for every document in a list. To do this, you have to break up role inheritance with the BreakRoleInheritance() method on the SPListItem.

You can then set new individual permission for this item. Have a look at this blog post it describes how to change permissions via code.

So remove the permissions for an item and re-add them only for the user how should be able to see or edit them. Using different RoleDefinitions you can decide what an user is able to do with the document. Only see it or also be able to edit it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜