Web模板的JS代码仅适用于完全控制用户 [英] JS code for web template only working for full control user

查看:68
本文介绍了Web模板的JS代码仅适用于完全控制用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我部署了带有分页的控制列表和用于使用内容搜索Web部件的项目模板,我们已经意识到没有完全控制的用户
无法在这些模板中运行逻辑。 SP管理员告诉我这不正确,因为用户不会配置完全控制,所以我的问题是,为了让脚本运行,还应该配置什么?
我的理解是,所有有权访问该文件夹的用户都能运行脚本吗?那是对的吗?任何帮助将不胜感激,谢谢提前。



Carlos M

I deployed the control list with paging and item template for using the with Content Search Web Parts, we have realized that users with no Full Control are not able to run the logic in these templates. SP admin has told me that this is not correct because the users won't be configured with Full Control, so my question is, what else should be configured in order to get the scripts running? My understanding is that all the users that have access to the folder will be able to run the scripts? is that correct? Any help would be appreciated, thanks in advance.


Carlos M

推荐答案

您需要使用CSWP检查几个问题

There are couple of thigs you need to check with CSWP

如果您使用的是Office 365,请检查以下链接

Check following links if you are using Office 365


https://sharepoint.stackexchange.com/questions/174496/no- results-by-content-search-webpart


https://sharepoint.stackexchange.co m / questions / 206175 / content-search-webpart-not-displays-on-the-page-on-sharepoint-online


https ://sharepoint.stackexchange.com/questions/123124/content-search-web-part-not-displaying-results?rq = 1

For Permissions:用户需要具有访问权限

For Permissions : user will need to have access for 

- 读取权限 - 脚本所在位置(文档库,文件夹等)

- Read access - Location of where your script is places (Document library, folder, etc)

- 读取权限 - 脚本中的所有引用(如果任何其他库/文件夹中的任何JS文件)

- Read access - All references within the script (if any JS file located within any other library/folder)

- 据我所知,您正在运行搜索用户的上下文,然后用户需要访问搜索服务。

- As I understand you are running search from user's context then user need to have access on Search service.

- 读取权限 - 显示用于显示的模板

- Read access - Display templates used for the display


这篇关于Web模板的JS代码仅适用于完全控制用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆