SharePoint Data View Conditional Formatting based on user permissions
2008-03-24 13:21
633 查看
SharePoint Data View Conditional Formatting based on user permissions
In your Data View or Data Form web part, you can conditionally display content based on the ddwrt:IfHasRights() function.<xsl:if test="ddwrt:IfHasRights(permissionMask)">
something...
</xsl:if>
Trying to get info on values for permissionMask from the advanced conditional formatting dialog box was not possible because there is no scrolling of this information in the UI (bug)
After a bit of searching, I found the values in C:\Program Files (x86)\Microsoft Office\Office12\CAML2XSL.XSL
The permissinMask value is the sum of any of the values below:
ViewListItems - 1
AddListItems - 2
EditListItems - 4
DeleteListItems - 8
ApproveItems - 16
OpenItems - 32
ViewVersions - 64
DeleteVersions - 128
CancelCheckout - 256
PersonalViews - 512
ManageLists - 2048
ViewFormPages - 4096
Open - 65536
ViewPages - 131072
AddAndCustomizePages - 262144
ApplyThemeAndBorder - 524288
ApplyStyleSheets - 1048576
ViewUsageData - 2097152
CreateSSCSite - 4194314
ManageSubwebs - 8388608
CreateGroups - 16777216
ManagePermissions - 33554432
BrowseDirectories - 67108864
BrowseUserInfo - 134217728
AddDelPrivateWebParts - 268435456
UpdatePersonalWebParts - 536870912
ManageWeb - 1073741824
UseRemoteAPIs - 137438953472
ManageAlerts - 274877906944
CreateAlerts - 549755813888
EditMyUserInfo - 1099511627776
EnumeratePermissions - 4611686018427387904
FullMask - 9223372036854775807
相关文章推荐
- SharePoint Data View Conditional Formatting based on user permissions (IfHasRights)
- SharePoint Data View Conditional Formatting based on user permissions (IfHasRights)
- Switch view in the InfoPath form according to the whether current user is in SharePoint group admin
- Sharepoint site showing system account instead of my username on the top right corner.
- MOSS爬网问题Error from SharePoint site: Data is Null. This method or property cannot be called on Null values
- SharePoint At Work----SharePoint Data View Web Part
- SharePoint At Work----Hyperlinks in the Data View Web Part
- SharePoint At Work----SharePoint Data View Web Part
- SharePoint At Work----Hyperlinks in the Data View Web Part
- Build Tree View Structure for SharePoint List Data
- Working with user roles and permissions in SharePoint Object Model
- [转]Working with user roles and permissions in SharePoint Object Model
- FW:Data View Web Parts and Ghosting in SharePoint Version 2
- A Hybrid User and Item-Based Collaborative Filtering with Smoothing on Sparse Data
- 创建团队项目时,遭遇:Insufficient permissions on the Windows SharePoint Services at 123.12.15.25 to create a new site.错误!
- Configure User Profile Service Application on SharePoint Server 2013
- A Hybrid User and Item-Based Collaborative Filtering with Smoothing on Sparse Data
- Custom Search Result Style Based On SharePoint Xslt Search Result Style
- on the web appear:"No data returned for this view.This might be because the applied filter excludes
- Force stop and then start a full crawl on all content sources in a SharePoint 2010 farm using PowerShell(转)