Browse Source

Merge pull request #1263 from colinin/fix-current-user-setting

fix(template): Fix the current user setting error
pull/1267/head
yx lin 9 months ago
committed by GitHub
parent
commit
a13c2dd66b
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      aspnet-core/templates/micro/content/src/PackageName.CompanyName.ProjectName.SettingManagement/PackageName/CompanyName/ProjectName/SettingManagement/ProjectNameSettingController.cs

4
aspnet-core/templates/micro/content/src/PackageName.CompanyName.ProjectName.SettingManagement/PackageName/CompanyName/ProjectName/SettingManagement/ProjectNameSettingController.cs

@ -41,7 +41,7 @@ public class ProjectNameSettingController : AbpController, IProjectNameSettingAp
[Route("by-current-user")] [Route("by-current-user")]
public virtual async Task SetCurrentUserAsync(UpdateSettingsDto input) public virtual async Task SetCurrentUserAsync(UpdateSettingsDto input)
{ {
await _settingAppService.SetCurrentTenantAsync(input); await _settingAppService.SetCurrentUserAsync(input);
} }
[Authorize] [Authorize]
@ -49,7 +49,7 @@ public class ProjectNameSettingController : AbpController, IProjectNameSettingAp
[Route("by-current-user")] [Route("by-current-user")]
public virtual async Task<SettingGroupResult> GetAllForCurrentUserAsync() public virtual async Task<SettingGroupResult> GetAllForCurrentUserAsync()
{ {
return await _settingAppService.GetAllForCurrentTenantAsync(); return await _settingAppService.GetAllForCurrentUserAsync();
} }
[Authorize(ProjectNamePermissions.ManageSettings)] [Authorize(ProjectNamePermissions.ManageSettings)]

Loading…
Cancel
Save