授予对自定义页面的访问权限?

发布于 2024-08-22 12:14:41 字数 273 浏览 3 评论 0原文

我有一个自定义共享点页面,它继承自我创建的自定义 dll 该页面位于我的共享文档库内。

我管理了该页面的权限,以便有两个组可以访问该页面:一组具有完全控制级别,另一组具有贡献级别。

问题是第二组(具有贡献安全级别)的任何成员尝试访问该页面,出现未经授权的登录页面,并且用户无法浏览该页面。

而第一组(具有完全控制)级别的任何用户都可以正常访问该页面。

那么是否缺少某些东西使得自定义页面只能由完全控制用户访问?代码中可以做些什么来解决这个问题吗?

谢谢

I have a custom sharepoint page that inherits from a custom dll I created
the page is located inside my shared documents library.

I managed the page's permissions so that there are two groups who can access it: one with a Full control level and the other with Contribute level.

the problem is that any member from the second group (with Contribute security level) tries to access the page, the unauthorized login page appears and the user cannot browse the page.

while any user from the first group (with Full Control) level can access the page normally.

so is there something missing that make custom pages only accessible by Full Control Users ? and is there any thing that can be done in the code to fix this ?

thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你怎么敢 2024-08-29 12:14:41

我怀疑您在此页面中编写了一些无法以贡献权限级别执行的代码。因此,请在注释掉您在此页面中编写的所有代码后尝试访问此页面,或者创建一个不包含任何代码的新页面。如果您可以使用贡献权限级别访问它,请在代码中使用模拟。

I doubt that you have written some code in this page that can not be performed with contribute permission level. So please try to access this page after commenting all the code you wrote in this page or create a new page with out any code. If you could access it with contribute permission level please use impersonation in your code.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文