I have a somewhat complicated situation with which I need some help.
Problem:
Certain fields in a (list) form need to be hidden when the user is not an Admin.
I am using SP2010.
Setup:
I have 2 permission groups:
a) Contributers
b) Admins
Then I have a list called Permission_Groups with 1 column:
a) Group Name
The column holds 2 entries:
a) Contributers
b) Admins
Then I have the list with the actual items (itemlist) and the (standard) form.
The form has been modified in InfoPath. sections have a formatting rule with condition Group name is not equal to Admins and formatting option hidden
I also added 2 buttons with the same rule as above.
This works great EXCEPT when a user is:
a) in none of the lists and not other rights (itemlist doesn't display at all)
b) in none of the list but does have contribute rights on the itemlist (all fields and both buttons display)
c) in both lists (Same as contributer (admin fields are hidden) and no buttons)
d) a site owner (Same as contributer (admin fields are hidden) and no buttons)
*For siteowners it doesn't matter if they are in Both, one or none of the lists.
In principle, everyone should be able to contribute, so that is easy to fix (add eveyone to the contributers list). The admins is not a problem either, again, just add them to the admin list.
edit
There is one more problem though: adding everybody to the contributers list is done by addign NT AUTHORITY. This includes people who are admins. This meand that admins would be in both lists.
The problem rest in the Admin-section when the people are also the siteowner(s).
I hope this is clear and that someone can help me out with this.
Kind regards and thanks in advanced!