PermissionGrantServiceCollectionExtensions class
namespace: Serenity.Extensions.DependencyInjection assembly: Serenity.Extensions
Contains extensions to register the checks of who can grant which permissions.
public static class PermissionGrantServiceCollectionExtensions
Public Members
| name | description |
|---|---|
| static AddPermissionGrants(…) | Adds PermissionGrantValidator as the IPermissionGrantValidator, with the PermissionGrantOptions that ConfigureSections reads from the "PermissionGrants" section of the settings. The application also registers its IUserGrantedPermissionsProvider, without which only super admins are protected from administrators changing their accounts. |