Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have created a custom disp-form and custom edit-form in a customized sharepoint list. I'd like to restrict access to those 2 custom forms to a specific security group.

Can someone advise how I can add some sort of permission to these forms?

share|improve this question
add comment

2 Answers

Create a simple webpart which checks for access permissions. Add these webpart into the forms.

share|improve this answer
    
Thanks for the reply. –  Peter Jun 28 '12 at 6:30
    
Cheers for the reply. Are you able to provide some more detail on how to do this? –  Peter Jun 28 '12 at 7:06
    
In your custom webpart, you can check the access permission for the currently logged in user. Get the security group to which the user belongs to and if that doesnt match with the exepected group, then redirect the user to an "Access denied" page. –  Manju Jun 28 '12 at 8:32
add comment

This is the best example I've found for this http://www.estruyf.be/blog/sharepoint-2007-create-permissions-on-list-views/

share|improve this answer
    
Thanks Andrew, I've managed to do that, however it has just secured the list view. I'm not sure how i can then limit access to the two forms dispform and editform. If i add them to the CustomActions list, the appear in both the new secured view and the original views in the ECB menu. And everyone who can access either lists can access the forms. –  Peter Jun 28 '12 at 7:04
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.