隐藏除5人以外的所有人的快速编辑功能区项目 [英] Hide the Quick Edit Ribbon item from everyone except for 5 people
问题描述
我被问到是否可以隐藏除5人以外的所有人的快速编辑功能区项目。
I have been asked if I could hide the Quick Edit Ribbon item, from everyone except for 5 people.
是这可能吗?
推荐答案
您可以将这5个用户放入一个SharePoint组。在浏览器中按F12以使用
F12开发人员工具并找到"快速编辑"选项的属性并检查其ID /类。使用JSOM检查当前用户是否属于该组。
You can put these 5 users into one SharePoint group. Press F12 in browser to use F12 developer tools and find the attributes of the "Quick Edit" option and check its id/class. Using JSOM to check if the current user belongs to the group.
< span style ="color:#1F497D">有关如何使用JavaScript检查当前用户是否属于特定SharePoint组的文章:
http://sharepoint.stackexchange.com/questions/86912/check-if-user-is-in-a-specified-group 跨度>
https://www.c-sharpcorner.com/blogs/check-user-membership-in -a-security-group-in-sharepoint
如果当前用户不在群组中,请使用
隐藏 JavaScript 。
Best 问候,
Linda 张
这篇关于隐藏除5人以外的所有人的快速编辑功能区项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!