aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Users/UserPolicy.cs
diff options
context:
space:
mode:
authorClaus Vium <cvium@users.noreply.github.com>2023-10-27 09:44:52 +0200
committerGitHub <noreply@github.com>2023-10-27 09:44:52 +0200
commitdb4605609c9c3d63536b48272e0c776e8ff7d41d (patch)
treebbe1ed7424ccff56e711e45f817b20ddf8bba13a /MediaBrowser.Model/Users/UserPolicy.cs
parent42a7e4cf1a09404eae3f588ba5c6312633bfb2da (diff)
parent8ada8dbbac6fc4f55ad5834f301f5c42139b4171 (diff)
Merge pull request #10410 from Ch1nkara/add-users-permission-to-edit-subtitles
add EnableSubtitleManagement permission
Diffstat (limited to 'MediaBrowser.Model/Users/UserPolicy.cs')
-rw-r--r--MediaBrowser.Model/Users/UserPolicy.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/MediaBrowser.Model/Users/UserPolicy.cs b/MediaBrowser.Model/Users/UserPolicy.cs
index 8354c60ef..f5aff07db 100644
--- a/MediaBrowser.Model/Users/UserPolicy.cs
+++ b/MediaBrowser.Model/Users/UserPolicy.cs
@@ -15,6 +15,7 @@ namespace MediaBrowser.Model.Users
{
IsHidden = true;
EnableCollectionManagement = false;
+ EnableSubtitleManagement = false;
EnableContentDeletion = false;
EnableContentDeletionFromFolders = Array.Empty<string>();
@@ -84,6 +85,13 @@ namespace MediaBrowser.Model.Users
public bool EnableCollectionManagement { get; set; }
/// <summary>
+ /// Gets or sets a value indicating whether this instance can manage subtitles.
+ /// </summary>
+ /// <value><c>true</c> if this instance is allowed; otherwise, <c>false</c>.</value>
+ [DefaultValue(false)]
+ public bool EnableSubtitleManagement { get; set; }
+
+ /// <summary>
/// Gets or sets a value indicating whether this instance is disabled.
/// </summary>
/// <value><c>true</c> if this instance is disabled; otherwise, <c>false</c>.</value>