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
7 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
2 deletions
-
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")] |
|
|
|
public virtual async Task SetCurrentUserAsync(UpdateSettingsDto input) |
|
|
|
{ |
|
|
|
await _settingAppService.SetCurrentTenantAsync(input); |
|
|
|
await _settingAppService.SetCurrentUserAsync(input); |
|
|
|
} |
|
|
|
|
|
|
|
[Authorize] |
|
|
|
@ -49,7 +49,7 @@ public class ProjectNameSettingController : AbpController, IProjectNameSettingAp |
|
|
|
[Route("by-current-user")] |
|
|
|
public virtual async Task<SettingGroupResult> GetAllForCurrentUserAsync() |
|
|
|
{ |
|
|
|
return await _settingAppService.GetAllForCurrentTenantAsync(); |
|
|
|
return await _settingAppService.GetAllForCurrentUserAsync(); |
|
|
|
} |
|
|
|
|
|
|
|
[Authorize(ProjectNamePermissions.ManageSettings)] |
|
|
|
|