aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-02-09 01:56:45 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-02-09 01:56:45 -0500
commitf03f2346f387010c84159ac2d2b3b22e9cc3b5c6 (patch)
treed0b5ce8a551cc3d32b22813dfffef7a5e8a38277 /MediaBrowser.Server.Implementations
parentd5c4655361c0567d6a97b9bd68552ee654e91d62 (diff)
revise opt-in tags
Diffstat (limited to 'MediaBrowser.Server.Implementations')
-rw-r--r--MediaBrowser.Server.Implementations/Library/UserManager.cs22
-rw-r--r--MediaBrowser.Server.Implementations/Localization/JavaScript/javascript.json4
-rw-r--r--MediaBrowser.Server.Implementations/Localization/Server/server.json7
3 files changed, 5 insertions, 28 deletions
diff --git a/MediaBrowser.Server.Implementations/Library/UserManager.cs b/MediaBrowser.Server.Implementations/Library/UserManager.cs
index 47903525b..b8bc8585e 100644
--- a/MediaBrowser.Server.Implementations/Library/UserManager.cs
+++ b/MediaBrowser.Server.Implementations/Library/UserManager.cs
@@ -168,7 +168,6 @@ namespace MediaBrowser.Server.Implementations.Library
foreach (var user in users)
{
await DoPolicyMigration(user).ConfigureAwait(false);
- await DoBlockedTagMigration(user).ConfigureAwait(false);
}
// If there are no local users with admin rights, make them all admins
@@ -347,25 +346,6 @@ namespace MediaBrowser.Server.Implementations.Library
}
}
- private async Task DoBlockedTagMigration(User user)
- {
- if (user.Policy.BlockedTags != null)
- {
- user.Policy.TagFilters = user.Policy
- .BlockedTags
- .Select(i => new TagFilter
- {
- Tag = i,
- Mode = TagFilterMode.Block
- })
- .ToArray();
-
- user.Policy.BlockedTags = null;
-
- await UpdateUserPolicy(user, user.Policy, false);
- }
- }
-
public UserDto GetUserDto(User user, string remoteEndPoint = null)
{
if (user == null)
@@ -1036,4 +1016,4 @@ namespace MediaBrowser.Server.Implementations.Library
}
}
}
-}
+} \ No newline at end of file
diff --git a/MediaBrowser.Server.Implementations/Localization/JavaScript/javascript.json b/MediaBrowser.Server.Implementations/Localization/JavaScript/javascript.json
index b31db164a..9d2c98c83 100644
--- a/MediaBrowser.Server.Implementations/Localization/JavaScript/javascript.json
+++ b/MediaBrowser.Server.Implementations/Localization/JavaScript/javascript.json
@@ -727,7 +727,5 @@
"SyncJobItemStatusSynced": "Synced",
"SyncJobItemStatusFailed": "Failed",
"SyncJobItemStatusRemovedFromDevice": "Removed from device",
- "SyncJobItemStatusCancelled": "Cancelled",
- "MessageBlockContentWithThisTag": "Block all content with this tag",
- "MessageAllowContentWithThisTag": "Allow only content with this tag"
+ "SyncJobItemStatusCancelled": "Cancelled"
}
diff --git a/MediaBrowser.Server.Implementations/Localization/Server/server.json b/MediaBrowser.Server.Implementations/Localization/Server/server.json
index e78b19c05..c28a61da4 100644
--- a/MediaBrowser.Server.Implementations/Localization/Server/server.json
+++ b/MediaBrowser.Server.Implementations/Localization/Server/server.json
@@ -1356,10 +1356,9 @@
"HeaderVideoTypes": "Video Types",
"HeaderYears": "Years",
"HeaderAddTag": "Add Tag",
- "LabelBlockOrAllowItemsWithTags": "Block or allow content with tags:",
+ "LabelBlockContentWithTags": "Block content with tags:",
+ "LabelAllowContentWithTags": "Allow only content with tags:",
"LabelTag": "Tag:",
- "OptionBlockItemWithTag": "Block all content with this tag",
- "OptionAllowItemWithTag": "Allow only content with this tag",
"LabelEnableSingleImageInDidlLimit": "Limit to single embedded image",
"LabelEnableSingleImageInDidlLimitHelp": "Some devices will not render properly if multiple images are embedded within Didl.",
"TabActivity": "Activity",
@@ -1372,5 +1371,5 @@
"TabJobs": "Jobs",
"TabSyncJobs": "Sync Jobs",
"LabelTagFilterMode": "Mode:",
- "LabelTagFilterAllowModeHelp": "If used as part of a deeply nested folder structure, content that is tagged with this mechanism will require parent folders to be tagged as well."
+ "LabelTagFilterAllowModeHelp": "If allowed tags are used as part of a deeply nested folder structure, content that is tagged will require parent folders to be tagged as well."
}