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

Comparison of Power BI Service vs. Power BI Report Server vs. SQL Server Reporting Services