mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-17 15:53:42 +01:00
Apply review suggestions
This commit is contained in:
@@ -3,17 +3,26 @@ namespace MediaBrowser.Model.Entities;
|
||||
/// <summary>
|
||||
/// Class to hold data on user permissions for lists.
|
||||
/// </summary>
|
||||
/// <param name="userId">The user id.</param>
|
||||
/// <param name="canEdit">Edit permission.</param>
|
||||
public class UserPermissions(string userId, bool canEdit = false)
|
||||
public class UserPermissions
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="UserPermissions"/> class.
|
||||
/// </summary>
|
||||
/// <param name="userId">The user id.</param>
|
||||
/// <param name="canEdit">Edit permission.</param>
|
||||
public UserPermissions(string userId, bool canEdit = false)
|
||||
{
|
||||
UserId = userId;
|
||||
CanEdit = canEdit;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the user id.
|
||||
/// </summary>
|
||||
public string UserId { get; set; } = userId;
|
||||
public string UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether the user has edit permissions.
|
||||
/// </summary>
|
||||
public bool CanEdit { get; set; } = canEdit;
|
||||
public bool CanEdit { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user