-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request 'Add Tenant Middleware and update tenant managemen…
…t logic' (#95) from feature/remove-async into develop
- Loading branch information
Showing
172 changed files
with
1,058 additions
and
1,077 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,27 +30,27 @@ namespace ASC.Web.Api.Models; | |
|
||
public class EmployeeFullDto : EmployeeDto | ||
{ | ||
/// <summary> | ||
/// First name | ||
/// </summary> | ||
/// <summary> | ||
/// First name | ||
/// </summary> | ||
[SwaggerSchemaCustom(Example = "Mike")] | ||
public string FirstName { get; set; } | ||
|
||
/// <summary> | ||
/// Last name | ||
/// </summary> | ||
/// <summary> | ||
/// Last name | ||
/// </summary> | ||
[SwaggerSchemaCustom(Example = "Zanyatski")] | ||
public string LastName { get; set; } | ||
|
||
/// <summary> | ||
/// Username | ||
/// </summary> | ||
/// <summary> | ||
/// Username | ||
/// </summary> | ||
[SwaggerSchemaCustom(Example = "Mike.Zanyatski")] | ||
public string UserName { get; set; } | ||
|
||
/// <summary> | ||
/// </summary> | ||
/// <summary> | ||
/// </summary> | ||
[SwaggerSchemaCustom(Example = "[email protected]")] | ||
[EmailAddress] | ||
public string Email { get; set; } | ||
|
@@ -65,9 +65,9 @@ public class EmployeeFullDto : EmployeeDto | |
/// </summary> | ||
public ApiDateTime Birthday { get; set; } | ||
|
||
/// <summary> | ||
/// Sex | ||
/// </summary> | ||
/// <summary> | ||
/// Sex | ||
/// </summary> | ||
[SwaggerSchemaCustom(Example = "male")] | ||
public string Sex { get; set; } | ||
|
||
|
@@ -86,9 +86,9 @@ public class EmployeeFullDto : EmployeeDto | |
/// </summary> | ||
public ApiDateTime Terminated { get; set; } | ||
|
||
/// <summary> | ||
/// Department | ||
/// </summary> | ||
/// <summary> | ||
/// Department | ||
/// </summary> | ||
[SwaggerSchemaCustom(Example = "Marketing")] | ||
public string Department { get; set; } | ||
|
||
|
@@ -102,21 +102,21 @@ public class EmployeeFullDto : EmployeeDto | |
/// </summary> | ||
public List<GroupSummaryDto> Groups { get; set; } | ||
|
||
/// <summary> | ||
/// Location | ||
/// </summary> | ||
/// <summary> | ||
/// Location | ||
/// </summary> | ||
[SwaggerSchemaCustom(Example = "Palo Alto")] | ||
public string Location { get; set; } | ||
|
||
/// <summary> | ||
/// Notes | ||
/// </summary> | ||
/// <summary> | ||
/// Notes | ||
/// </summary> | ||
[SwaggerSchemaCustom(Example = "Notes to worker")] | ||
public string Notes { get; set; } | ||
|
||
/// <summary> | ||
/// Specifies if the user is an administrator or not | ||
/// </summary> | ||
/// <summary> | ||
/// Specifies if the user is an administrator or not | ||
/// </summary> | ||
[SwaggerSchemaCustom(Example = false)] | ||
public bool IsAdmin { get; set; } | ||
|
||
|
@@ -125,15 +125,15 @@ public class EmployeeFullDto : EmployeeDto | |
/// </summary> | ||
public bool IsRoomAdmin { get; set; } | ||
|
||
/// <summary> | ||
/// Specifies if the LDAP settings are enabled for the user or not | ||
/// </summary> | ||
/// <summary> | ||
/// Specifies if the LDAP settings are enabled for the user or not | ||
/// </summary> | ||
[SwaggerSchemaCustom(Example = false)] | ||
public bool IsLDAP { get; set; } | ||
|
||
/// <summary> | ||
/// List of administrator modules | ||
/// </summary> | ||
/// <summary> | ||
/// List of administrator modules | ||
/// </summary> | ||
[SwaggerSchemaCustom(Example = "[\"projects\", \"crm\"]")] | ||
public List<string> ListAdminModules { get; set; } | ||
|
||
|
@@ -152,9 +152,9 @@ public class EmployeeFullDto : EmployeeDto | |
/// </summary> | ||
public bool IsCollaborator { get; set; } | ||
|
||
/// <summary> | ||
/// Language | ||
/// </summary> | ||
/// <summary> | ||
/// Language | ||
/// </summary> | ||
[SwaggerSchemaCustom(Example = "en-EN")] | ||
public string CultureName { get; set; } | ||
|
||
|
@@ -168,9 +168,9 @@ public class EmployeeFullDto : EmployeeDto | |
/// </summary> | ||
public MobilePhoneActivationStatus MobilePhoneActivationStatus { get; set; } | ||
|
||
/// <summary> | ||
/// Specifies if the SSO settings are enabled for the user or not | ||
/// </summary> | ||
/// <summary> | ||
/// Specifies if the SSO settings are enabled for the user or not | ||
/// </summary> | ||
[SwaggerSchemaCustom(Example = false)] | ||
public bool IsSSO { get; set; } | ||
|
||
|
@@ -184,9 +184,9 @@ public class EmployeeFullDto : EmployeeDto | |
/// </summary> | ||
public long? QuotaLimit { get; set; } | ||
|
||
/// <summary> | ||
/// Portal used space | ||
/// </summary> | ||
/// <summary> | ||
/// Portal used space | ||
/// </summary> | ||
[SwaggerSchemaCustom(Example = 12345)] | ||
public double? UsedSpace { get; set; } | ||
|
||
|
@@ -306,7 +306,7 @@ public async Task<EmployeeFullDto> GetSimpleWithEmail(UserInfo userInfo) | |
public async Task<EmployeeFullDto> GetFullAsync(UserInfo userInfo, bool? shared = null) | ||
{ | ||
var currentType = await _userManager.GetUserTypeAsync(userInfo.Id); | ||
var tenant = await tenantManager.GetCurrentTenantAsync(); | ||
var tenant = tenantManager.GetCurrentTenant(); | ||
|
||
var result = new EmployeeFullDto | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.