mirror of
https://github.com/bitwarden/server
synced 2025-12-17 16:53:23 +00:00
Added user type to organization APIs
This commit is contained in:
@@ -12,11 +12,13 @@ namespace Bit.Core.Models.Api
|
||||
Name = organization.Name;
|
||||
Key = organization.Key;
|
||||
Status = organization.Status;
|
||||
Type = organization;
|
||||
}
|
||||
|
||||
public string Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Key { get; set; }
|
||||
public OrganizationUserStatusType Status { get; set; }
|
||||
public OrganizationUserType Type { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,5 +9,6 @@ namespace Bit.Core.Models.Data
|
||||
public string Name { get; set; }
|
||||
public string Key { get; set; }
|
||||
public Enums.OrganizationUserStatusType Status { get; set; }
|
||||
public Enums.OrganizationUserType Type { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,8 @@ SELECT
|
||||
OU.[OrganizationId],
|
||||
O.[Name],
|
||||
OU.[Key],
|
||||
OU.[Status]
|
||||
OU.[Status],
|
||||
OU.[Type]
|
||||
FROM
|
||||
[dbo].[OrganizationUser] OU
|
||||
INNER JOIN
|
||||
|
||||
Reference in New Issue
Block a user