mirror of
https://github.com/bitwarden/server.git
synced 2025-04-25 06:42:22 -05:00

* feat: remove required for AccessAll and add xmldoc for usage restrictions, refs AC-1880 * feat: add validation for create group workflow wrt manage property, refs AC-1880 * feat: add validation for update group workflow wrt manage property, refs AC-1880 * feat: add validation for create and update member workflow wrt manage property, refs AC-1880 * feat: add validation for update collection workflow wrt manage property, refs AC-1880 * fix: flaky Public/GroupsControllerTests + more test coverage, refs AC-1880
29 lines
1.2 KiB
C#
29 lines
1.2 KiB
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; }
|
|
/// <summary>
|
|
/// When true, the manage permission allows a user to both edit the ciphers within a collection and edit the users/groups that are assigned to the collection.
|
|
/// This field will not affect behavior until your organization is using the latest collection enhancements (Releasing Q1, 2024)
|
|
/// </summary>
|
|
public bool? Manage { get; set; }
|
|
}
|