Get the current user permission level on a list item with ecmascript
来源:互联网 发布:网络诈骗特点有 编辑:程序博客网 时间:2024/06/14 18:17
To Check current users permissions using Ecmascript\Javascript client object model SharePoint 2010.
function checkifUserHasEditPermissions() {context = new SP.ClientContext.get_current();web = context.get_web();this._currentUser = web.get_currentUser();context.load(this._currentUser);context.load(web,'EffectiveBasePermissions');context.executeQueryAsync(Function.createDelegate(this, this.onSuccessMethod), Function.createDelegate(this, this.onFailureMethod));}function onSuccessMethod(sender, args) {if (web.get_effectiveBasePermissions().has(SP.PermissionKind.editListItems)) {//User Has Edit Permissions}}}
0 0
- Get the current user permission level on a list item with ecmascript
- How to get the current user logged into Sharepoint
- Interacting with the User in a Service
- Getting started with uinput: the user level input subsystem
- How to set the current user on the model instance in the admin:
- Get current URL with JavaScript?
- Break the list items Inheritance permission and custom the permission with ItemAdded Event
- CTreeCtrl/CListCtrl/CListBox With ToolTip Based On the Item Data
- Get the SharePoint groups in Infopath 2010 and SharePoint 2010 by current user without any code
- How to: Filter List Views on the UI Specific Level
- 安装apache_2.2.4时选择only for the Current User, on 8080, when started Manually
- 【PAT】【Advanced Level】1097. Deduplication on a Linked List (25)
- List the UTC Time on a Computer
- TREES ON THE LEVEL
- Trees on the level
- Trees on the level
- Trees on the level
- Creating a List Item instance programmatically using the object model
- vector内存机制和性能分析
- 分布式计算,Job和task
- 猜算式
- CCBPM中的消息机制,CCIM服务端安装说明
- LINQ使用连接(1、组连接 2、内连接 3、左外连接 4、交叉连接)
- Get the current user permission level on a list item with ecmascript
- java基础==面向对象 三大特性
- CT-LIBRARY error:ct_connect(): protocol specific layer: internal Client Library error: There is a td
- 矩阵乘法-1
- OIO与NIO区别
- IOS 6 自动布局 入门-1(IOS中autolayout和之前版本autoresize的差异)
- unix下执行perl
- 三大跳槽传闻,信了你就输了!
- POJ1502