Sharepoint 2010:基于当前用户判断访问列表项目的权限 --Determine access to SPListItem based on a Current User
2012-02-07 15:35
821 查看
In that case you could check / ensure permissions on a certain list item with the methodDoesUserHavePermissions:
SPListItem item =//...
if(item.DoesUserHavePermissions(SPContext.Current.Web.CurrentUser,SPBasePermissions.ViewListItems))
{
// futher actions if user has permission goes here.
}
相关文章推荐
- SharePoint【用户访问控制】-- 03. SharePoint 2010 列表项级权限、草稿项安全设置
- SharePoint【用户访问控制】-- sharepoint 判断当前用户在当前页面是否有某项权限
- sharepoint 2010 验证用户组是否存在当前用户 IsCurrentUserMemberOfGroup
- angular JS 基于ionic框架 开发移动端项目 实现进入前台 判断用户权限 控制项目UI布局和tab的部门显示和隐藏
- mysql 查看当前登陆用户匹配原则及权限user()与current_user()
- Get the current user permission level on a list item with ecmascript 分类: Sharepoint 2015-07-14 14:13 7人阅读 评论(0) 收藏
- How to determine who is logged on to a database by using Microsoft Jet UserRoster in Access 2000
- SPListItem Update Operation is not valid due to the current state of the object(对象的当前状态使该操作无效。)
- mysql 查看当前登陆用户匹配原则及权限user()与current_user()
- SharePoint 2010 获取当前用户的权限
- you don't have permission to access / on this server(Apache Server权限访问问题)
- sharepoint 判断当前用户在当前页面是否有某项权限
- SharePoint 2010 获取当前用户的权限
- SharePoint 2010 获取当前用户的权限
- JDBC连接执行 MySQL 存储过程报权限错误:User does not have access to metadata required to determine stored procedur
- SharePoint【用户访问控制】-- 02. SharePoint 2010 用户组、权限级别、权限
- moss中判断当前用户是否有访问某web的权限
- SharePoint 2010 获取当前用户的权限
- JDBC连接执行 MySQL 存储过程报权限错误:User does not have access to metadata required to determine stored procedure parameter types. If rights can not be granted,
- SharePoint 2010 获取当前用户的权限