fix users page
This commit is contained in:
@@ -52,6 +52,8 @@ builder.Services.AddAuthorization(options => {
|
||||
policy.RequireRole("admin", "superuser"));
|
||||
options.AddPolicy("SensitiveDataModify", policy =>
|
||||
policy.RequireRole("superuser"));
|
||||
|
||||
// TODO: policies are read at runtime. define policy names in a central place and distribute the symbol
|
||||
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user