mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 00:22:50 -05:00

* Add missing hide-passwords permission to api models * Update src/Api/Auth/Models/Public/AssociationWithPermissionsBaseModel.cs Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com> * Rename ToSelectionReadOnly to ToCollectionAccessSelection * Remove Required attribute which would break backwards compatability * Update src/Api/Auth/Models/Public/Request/AssociationWithPermissionsRequestModel.cs Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com> --------- Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com> Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
17 lines
454 B
C#
17 lines
454 B
C#
using Bit.Core.Models.Data;
|
|
|
|
namespace Bit.Api.AdminConsole.Public.Models.Request;
|
|
|
|
public class AssociationWithPermissionsRequestModel : AssociationWithPermissionsBaseModel
|
|
{
|
|
public CollectionAccessSelection ToCollectionAccessSelection()
|
|
{
|
|
return new CollectionAccessSelection
|
|
{
|
|
Id = Id.Value,
|
|
ReadOnly = ReadOnly.Value,
|
|
HidePasswords = HidePasswords.GetValueOrDefault()
|
|
};
|
|
}
|
|
}
|