I have a SP2010 application page to which I want all authenticated users to be able to navigate.
public partial class AllWorkspacesTreeDisplay : LayoutsPageBase { protected override void OnLoadComplete(EventArgs e) { base.OnLoadComplete(e); // DO SOME WORK
}
}
When running Code Analysis on this I get the following
CA2123 Override link demands should be identical to base
Add the following security attribute to 'AllWorkspacesTreeDisplay.OnLoadComplete(EventArgs)' in order to match a LinkDemand on base method 'LayoutsPageBase.OnLoadComplete(EventArgs)': [PermissionSet(SecurityAction.LinkDemand, Name = "FullTrust")].
xxx.xxx.WorkSpace - AllWorkspaces.aspx.cs (Line 12)
Bearing in mind I want all authenticated users to be able to access that page (hence inheriting from LayoutsPageBase), what should I do?
Maz