diff options
| author | Shadowghost <Ghost_of_Stone@web.de> | 2024-03-26 23:45:14 +0100 |
|---|---|---|
| committer | Shadowghost <Ghost_of_Stone@web.de> | 2024-03-26 23:45:14 +0100 |
| commit | 56c432a8439e1b75c15729bfdb19d41d34e3124d (patch) | |
| tree | 00fa37a452a34363922f1b10ccefbec7f55ef81d /MediaBrowser.Model/Entities/UserPermissions.cs | |
| parent | f1dc1610a28fdb2dec4241d233503b6e11020546 (diff) | |
Apply review suggestions
Diffstat (limited to 'MediaBrowser.Model/Entities/UserPermissions.cs')
| -rw-r--r-- | MediaBrowser.Model/Entities/UserPermissions.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/MediaBrowser.Model/Entities/UserPermissions.cs b/MediaBrowser.Model/Entities/UserPermissions.cs new file mode 100644 index 000000000..271feed11 --- /dev/null +++ b/MediaBrowser.Model/Entities/UserPermissions.cs @@ -0,0 +1,19 @@ +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) +{ + /// <summary> + /// Gets or sets the user id. + /// </summary> + public string UserId { get; set; } = userId; + + /// <summary> + /// Gets or sets a value indicating whether the user has edit permissions. + /// </summary> + public bool CanEdit { get; set; } = canEdit; +} |
