protected WebAppApiWrapper(AppApi source, IServiceProvider sp) : base(source) { User = new UserGroup ( source.AddGroup ( nameof(User), ModifierCategoryName.Default, ResourceAccess.AllowAuthenticated() ) ); UserCache = new UserCacheGroup ( source.AddGroup ( nameof(UserCache), ModifierCategoryName.Default, ResourceAccess.AllowAuthenticated() .WithAllowed(AppRoleName.ManageUserCache) ), sp ); }