根据我的实验,发现“查看所有网站内容”是有SharePoint里Role=“编辑项目”来控制的,所以当我们想让某一用户具有编辑权限,确不能查看所有网站内容时,就用到了下面的方法:

借鉴:http://www.crsw.com/mark/Lists/Posts/Post.aspx?ID=36

1. Open the SiteAction.xml file in Notepad from <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

"C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\EditingMenu\SiteAction.xml"

2. Find the ConsoleNode element that defines the “View All Site Content” link (look for Action="cms:ViewAllSiteContentAction").

3. Add “UserRights” and “RequiredRightsMode” attributes to define the permission levels that a user must have to see the link. For an example, see the ConsoleNode element for the Site Settings link.

4. Run "iisreset /noforce" on the web server to make the change visible.

5. Repeat for each web server on the farm.

修改如下:

<ConsoleNode Action="cms:ViewAllSiteContentAction"

DisplayText="cms,siteactions_viewallsitecontent_displaytext"

Description="cms,siteactions_viewallsitecontent_description"

UseResourceFile="true"

MenuGroupId="200"

Sequence="150"

PermissionContext="CurrentSite"

     UserRights="ManageWeb"

     RequiredRightsMode="Any" 

ImageUrl="/_layouts/images/vwcntnt.gif"

ID="wsaViewAllContent"  />

下面是来自MSDN上的关于:ConsoleNode 和 UserRights 的介绍。

1. ConsoleNode Properties

(Microsoft.SharePoint.Publishing.WebControls)

<?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" />Public Properties

Name

Description

AccessKey

Gets or sets the Access Key of this ConsoleNode object.

Action

Gets or sets the ConsoleAction object that corresponds to this ConsoleNode object.

Attributes

Gets a collection of all Attributes properties pertaining to this ConsoleNode object.

ChangedNodeId

Gets or sets the ID of the ConsoleNode object being replaced, modified or deleted.

ChildConsoleNodes

Gets the collection of ConsoleNode objects that are children of this ConsoleNode object.

ConfigMenu

Gets or sets how this ConsoleNode object is used with the existing hierarchy.

Description

Gets or sets a string containing text that describes this ConsoleNode object.

Enabled

Gets or sets whether the ConsoleNode object should be enabled for the user.

HasChildNodes

Gets a Boolean value that indicates whether this ConsoleNode object has any child ConsoleNode objects.

HideIfDisabled

Gets or sets whether this ConsoleNode object should be hidden from view when it is disabled.

HideStates

Gets or sets the states for which this ConsoleNode object should be hidden.

Id

Gets or sets the ID of this ConsoleNode object.

ImageUrl

Gets or sets the URL of the image shown when this ConsoleNode is used.

IsSeparatorImage

Gets or sets whether this ConsoleNode object is a separator of other items.

IsSiteRelative

Gets or sets whether to interpret the NavigateUrl property as relative to the current SPWeb object.

MenuGroupId

Gets or sets the group ID in which this item should be displayed.

NavigateUrl

Gets or sets the href value of this ConsoleNode object.

OriginalId

Gets or sets the original ID of this ConsoleNode before an associated action modifies it.

ParentNode

Gets or sets the parent ConsoleNode of this ConsoleNode object.

PermissionContext

Gets or sets the context in which to evaluate the permissions of this ConsoleNode object.

RequiredStates

Gets or sets the states required for this ConsoleNode object to be enabled in the current context.

RightsMode

Gets or sets whether all or any UserRights properties must be satisfied.

Sequence

Gets or sets the place where this ConsoleNode object appears in the node order.

Text

Gets or sets the display text associated with this ConsoleNode object.

Title

Gets or sets the title of this ConsoleNode object.

Type

Gets or sets the type of this ConsoleNode object.

UseActionImageUrl

Gets or sets whether this ConsoleNode should use its own ImageUrl property or that of the referenced ConsoleAction object.

UseActionNavigateUrl

Gets or sets whether this ConsoleNode should use its own NavigateUrl property or that of the referenced ConsoleAction object.

UseActionRightsMask

Gets or sets whether this ConsoleNode should use its own UserRights property or that of the referenced ConsoleAction object.

UseActionStatesMask

Gets or sets whether this ConsoleNode should use its own RequiredStates property or those of the referenced ConsoleAction object.

UseActionText

Gets or sets whether this ConsoleNode object should use its own display text or that of a referenced ConsoleAction object.

UserRights

Gets or sets the rights required for this user to see this ConsoleNode object.

Visible

Specifies whether the ConsoleNode should be displayed to the user.

2. SPBasePermissions Enumeration

(Microsoft.SharePoint)

Members

Member name

Description

AddAndCustomizePages

Add, change, or delete HTML pages or Web Part Pages, and edit the Web site using a Windows SharePoint Services–compatible editor.

AddDelPrivateWebParts

Add or remove personal Web Parts on a Web Part Page.

AddListItems

Add items to lists, add documents to document libraries, and add Web discussion comments.

ApplyStyleSheets

Apply a style sheet (.css file) to the Web site.

ApplyThemeAndBorder

Apply a theme or borders to the entire Web site.

ApproveItems

Approve a minor version of a list item or document.

BrowseDirectories

Enumerate files and folders in a Web site using Microsoft Office SharePoint Designer 2007 and WebDAV interfaces.

BrowseUserInfo

View information about users of the Web site.

CancelCheckout

Discard or check in a document which is checked out to another user.

CreateAlerts

Create e-mail alerts.

CreateGroups

Create a group of users that can be used anywhere within the site collection.

CreateSSCSite

Create a Web site using Self-Service Site Creation.

DeleteListItems

Delete items from a list, documents from a document library, and Web discussion comments in documents.

DeleteVersions

Delete past versions of a list item or document.

EditListItems

Edit items in lists, edit documents in document libraries, edit Web discussion comments in documents, and customize Web Part Pages in document libraries.

EditMyUserInfo

Allows a user to change his or her user information, such as adding a picture.

EmptyMask

Has no permissions on the Web site. Not available through the user interface.

EnumeratePermissions

Enumerate permissions on the Web site, list, folder, document, or list item.

FullMask

Has all permissions on the Web site. Not available through the user interface.

ManageAlerts

Manage alerts for all users of the Web site.

ManageLists

Create and delete lists, add or remove columns in a list, and add or remove public views of a list.

ManagePermissions

Create and change permission levels on the Web site and assign permissions to users and groups.

ManagePersonalViews

Create, change, and delete personal views of lists.

ManageSubwebs

Create subsites such as team sites, Meeting Workspace sites, and Document Workspace sites.

ManageWeb

Grant the ability to perform all administration tasks for the Web site as well as manage content. Activate, deactivate, or edit properties of Web site scoped Features through the object model or through the user interface (UI). When granted on the root Web site of a site collection, activate, deactivate, or edit properties of site collection scoped Features through the object model. To browse to the Site Collection Features page and activate or deactivate site collection scoped Features through the UI, you must be a site collection administrator.

Open

Allow users to open a Web site, list, or folder to access items inside that container.

OpenItems

View the source of documents with server-side file handlers.

UpdatePersonalWebParts

Update Web Parts to display personalized information.

UseClientIntegration

Use features that launch client applications; otherwise, users must work on documents locally and upload changes.

UseRemoteAPIs

Use SOAP, WebDAV, or Microsoft Office SharePoint Designer 2007 interfaces to access the Web site.

ViewFormPages

View forms, views, and application pages, and enumerate lists.

ViewListItems

View items in lists, documents in document libraries, and view Web discussion comments.

ViewPages

View pages in a Web site.

ViewUsageData

View reports on Web site usage.

ViewVersions

View past versions of a list item or document.

转载于:https://www.cnblogs.com/LeimOO/archive/2009/01/17/1377602.html

隐藏“查看所有网站内容”相关推荐

  1. 如何隐藏“查看所有网站内容”

    方法一:修改C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\2052\ ...

  2. 隐藏右侧“快速启动栏”中的回收站图标及查看所有网站内容

    首先,我们看一下需要隐藏右侧回收站的网站.    用SharePoint Designer打开网站,找到masterpage目录,打开default.master文件,把回收站部门注释掉.  如下图: ...

  3. SharePoint隐藏快速启动栏_左侧导航_所有网站内容_回收站

    隐藏快速启动栏 1. 使用内容编辑Web部件 编辑需要隐藏快速启动栏的页面,插入一个内容编辑控件(放任何地方都行),编辑HTML源,插入下面的代码: 保存页面,快速启动栏就隐藏了.接着你可以隐藏自己添 ...

  4. 如何防止网站内容被采集

    很多防采集方法在施行的时候需要考虑是否影响搜索引擎对网站的抓取,所以先来分析下一般采集器和搜索引擎爬虫采集有何不同. 相同点: a. 两者都需要直接抓取到网页源码才能有效工作, b. 两者单位时间内会 ...

  5. Lerx开源网站内容管理系统

    介绍: Lerx 开源网站内容管理系统(CMS)是一个以Java+MySQL进行开发的内容管理系统源码. 一.简介 1.跨平台设计,能无差别运行于Windows.Linux.MacOS等系统平台. 2 ...

  6. linux查看删除init内容,linux常用命令

    图形界面启动 startx 关机 shutdown -h now 立刻关机 shutdown -r now 立刻重启 reboot 立刻重启 注销 logout 记事本 vi 文件名 进入后 i 插入 ...

  7. 搜索引擎如何评估外贸网站内容?

    (一) 搜索引擎如何评估外贸网站内容 搜索引擎给予每个网页上的内容很高的权重,毕竟一个页面是关于什么的是由于其内容决定的,为了做出好的页面排序,搜索引擎的爬虫会对页面的内容进行非常细致的分析. 搜索引 ...

  8. 电脑端如何隐藏显示CAD图层内容

    在日常CAD制图的过程中,我们常常需要查看CAD图纸,有时候由于图纸内容细节复杂,无法看清需要查看的具体图层内容,该怎么办呢?其实可以使用隐藏/显示图层内容的方式,将部分图层暂时隐藏起来,便于查看显示 ...

  9. 国内CMS网站内容管理系统介绍

    国内免费(开源)CMS系统大全 最近在网上搜集了一下国内的CMS程序,包括了类型,脚本,及其特点和评价,希望能对大家有所帮助, 由于搜集于网络难免有不足和纰漏之处,还请大家能多多指正! 首先还是介绍一 ...

最新文章

  1. idea的setting界面怎么进_WMA转MP3怎么转?学会这招,WMA视频随便看!
  2. window7 telnet localhost 5554
  3. 完结篇 | 吴恩达《序列模型》精炼笔记(3)-- 序列模型和注意力机制
  4. boost::hana::arg用法的测试程序
  5. Codeforces 1480A. Yet Another String Game (阅读理解题)
  6. oracle查询当前用户名下所有表
  7. php3级分类,关于php非递归三级分类输出json数据
  8. 一个简单限速器的java实现[1]
  9. CentOS 7 启用远程连接和使用postgis等客户端连接
  10. remote collaboration on physical tasks 应用
  11. AWS DeepRacer 强化学习RL,工作流程
  12. 物流仿真在AGV调度方面应用案例
  13. 【AI视野·今日CV 计算机视觉论文速览 第155期】Fri, 6 Sep 2019
  14. XAMPP使用教程方法(摘录)
  15. 计算机网络及光纤通信实验教程,电子科技大学光纤通信视频教程
  16. 2021年金属非金属矿山(地下矿山)安全管理人员最新解析及金属非金属矿山(地下矿山)安全管理人员证考试
  17. MMPB/GBSA结合自由能计算以残基贡献度分析
  18. 偶的流氓老公zt (超搞笑-转)
  19. 记一段随风而逝的感情
  20. moviepy音视频剪辑:使用concatenate_videoclips和clips_array将多个视频合成一个顺序播放或同屏播放的视频

热门文章

  1. 电容分类---等级划分
  2. 开发一个钉钉小程序和微信小程序签到APP的具体学习报告
  3. 基于NXP523芯片,射频读卡器,支持二代证ID,ISO14443A/B
  4. 罗斯蒙特T1056浊度计T1056-01-10-20-30-71
  5. select * 和 select 字段的区别
  6. Android平台Fastboot介绍
  7. 百度地图坐标点轨迹画线php,百度地图绘制轨迹点
  8. python中e怎么计算_python计算e
  9. Pr调色预设怎么安装?.cube格式luts预设如何导入pr?Premiere导入LUTs预设详细教程
  10. IIS集群设置Server Farms 配置步骤