Groups are case insensitive.

This commit is contained in:
Sipke Schoorstra
2014-07-16 17:20:41 -07:00
parent ab2af43f60
commit 8b4e3e2314

View File

@@ -76,7 +76,10 @@ namespace Orchard.ContentManagement.Drivers {
return editor;
}
if ((editor.GetGroup() ?? string.Empty) != (context.GroupId ?? string.Empty)) {
var editorGroup = editor.GetGroup() ?? "";
var contextGroup = context.GroupId ?? "";
if (!String.Equals(editorGroup, contextGroup, StringComparison.OrdinalIgnoreCase)) {
return editor;
}
}