|
@@ -688,7 +688,7 @@ namespace PRSDesktop
|
|
|
|
|
|
private void Grid_CustomiseElementContextMenu(ContextMenu menu, DFLayoutElement element)
|
|
|
{
|
|
|
- if(element is CustomDashboardElement dashboardElement)
|
|
|
+ if(element is CustomDashboardElement dashboardElement && Security.IsAllowed<CanManageCustomDashboards>())
|
|
|
{
|
|
|
menu.AddItem("Edit Dashboard", null, dashboardElement, EditDashboard_Click);
|
|
|
}
|