diff --git a/configuration/using-dashboard.rst b/configuration/using-dashboard.rst index fc06fe6..5d1f036 100644 --- a/configuration/using-dashboard.rst +++ b/configuration/using-dashboard.rst @@ -122,7 +122,11 @@ The read-only dashboard view prevents users from changing anything, such as dele app.UseHangfireDashboard("/hangfire", new DashboardOptions { - IsReadOnlyFunc = (DashboardContext context) => true + IsReadOnlyFunc = (DashboardContext dashboardContext) => + { + var context = dashboardContext.GetHttpContext(); + return context.User.IsInRole("Admin"); + } }); Change URL Mapping