Skip to content

Commit

Permalink
Update using-dashboard.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
odinserj committed Oct 16, 2024
1 parent 87fd4df commit 28cceef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion configuration/using-dashboard.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 28cceef

Please sign in to comment.