mirror of
https://github.com/bitwarden/server.git
synced 2025-07-05 10:02:47 -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>
24 lines
847 B
C#
24 lines
847 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Bit.Api.AdminConsole.Public.Models;
|
|
|
|
public abstract class AssociationWithPermissionsBaseModel
|
|
{
|
|
/// <summary>
|
|
/// The associated object's unique identifier.
|
|
/// </summary>
|
|
/// <example>bfbc8338-e329-4dc0-b0c9-317c2ebf1a09</example>
|
|
[Required]
|
|
public Guid? Id { get; set; }
|
|
/// <summary>
|
|
/// When true, the read only permission will not allow the user or group to make changes to items.
|
|
/// </summary>
|
|
[Required]
|
|
public bool? ReadOnly { get; set; }
|
|
/// <summary>
|
|
/// When true, the hide passwords permission will not allow the user or group to view passwords.
|
|
/// This prevents easy copy-and-paste of hidden items, however it may not completely prevent user access.
|
|
/// </summary>
|
|
public bool? HidePasswords { get; set; }
|
|
}
|