Hide Workflow History in WrkStat.aspx

There are times when you want to show the Workflow History only to Admin Users and not for normal users. But whenever a user clicks on the status of the Workflow, it redirects to the _layouts/WrkStat.asp and shows all information for all users.
In order to avoid that, we can take advantage of the SPSecurityTrimmedControl.

Open the WrkStat.aspx from 14->template->layouts in Visual Studio and then
add
<Sharepoint:SPSecurityTrimmedControl runat="server" Permissions="ManageLists"> in Line 128
and close the tag in Line 239.
You will have the Workflow History Page appear like this for non-admin users :)

Comments

Popular posts from this blog

Using External Content Types with Stored Procedures with Input Parameters

HTTPS Site InfoPath Issue : You do not have permissions to access a web service that provides data required for this form to function correctly

Windows 7 Blue Screen because of ConnectiFy