开发者

Sharepoint page redirection for unauthorised users

开发者 https://www.devze.com 2022-12-25 14:34 出处:网络
Is it possible, if so how(!), to auto redirect a user that doesnt have access to a certain page? I can see that in many cases this could be a complete pain for a user and confusing, but in my s开发者

Is it possible, if so how(!), to auto redirect a user that doesnt have access to a certain page?

I can see that in many cases this could be a complete pain for a user and confusing, but in my s开发者_如何学编程ituation it would be ideal.

Thx in advance!

Steve


Yes, this is possible.

You can do it by creating a custom HTTP Module, which can override the default access denied page.

Here's an example.


You can customise the accessdenied.aspx file in layouts folder.

Before customising it you need to take a copy.

with the writing of javascript (location.href=new file) code you can redirect user to other page.

0

精彩评论

暂无评论...
验证码 换一张
取 消