I have custom application page, now what I want to do, is to allow users ( or SPGroup ) to view and use application page. How this should be done ? Currently only administrator can view application page, other users can't.
Tell me more
×
SharePoint Stack Exchange is a question and answer site for
SharePoint enthusiasts. It's 100% free, no registration required.
|
I finally figure this out. The problem was that I was accessing SPSite and SPWeb objects, and users didn't have permissions to interact with this objects. So I had to wrap SPSite and SPWeb object calls into SPSecurity.RunWithElevatedPrivileges. Now everything works as exepcted. |
|||
|
|
|
Please make sure that you have in your codebehind
Then in your Init event, you can check if the current user is member of a specific group that you trust and if it's not the case, you can use the |
|||||||
|
