We covered the new WSS feature framework in a I was teaching last week. Using features you can item menu items to the Site Actions menu. It seems in all the example the menu will show up for all users. Someone asked “How do you restrict it so that the menu item only shows up for Site Administrators?”
I wasn’t sure but after a bit of hunting I found this article that had the answer:
http://sharepointsolutions.blogspot.com/2006/10/quick-site-settings-adding-sub-menus_16.html
All you need to do is add the RequireSiteAdministrator=”TRUE” attribute as in the following example:
<Elements xmlns=”http://schemas.microsoft.com/sharepoint/”>
<CustomAction
Id=”SiteActionsSubMenuCustomizer”
RequireSiteAdministrator=”TRUE”
GroupId=”SiteActions”
Location=”Microsoft.SharePoint.StandardMenu”
ControlAssembly=”SiteActionsSubMenuDemo, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e9db3057acd9c0f6″
ControlClass=”SiteActionsSubMenuDemo.SiteActionsSubMenuCustomizer” >
</CustomAction>
</Elements>