diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/dialogs/sendToTranslation.aspx.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/dialogs/sendToTranslation.aspx.cs index 588bbe5bfc..80118b4836 100644 --- a/src/Umbraco.Web/umbraco.presentation/umbraco/dialogs/sendToTranslation.aspx.cs +++ b/src/Umbraco.Web/umbraco.presentation/umbraco/dialogs/sendToTranslation.aspx.cs @@ -70,7 +70,7 @@ namespace umbraco.presentation.dialogs // Translators foreach (var u in BusinessLogic.User.getAll()) - if (u.UserType.Alias.ToLower() == "translator") + if (u.UserType.Alias.ToLower() == "translator" || UserHasTranslatePermission(u, _currentPage)) translator.Items.Add(new ListItem(u.Name, u.Id.ToString())); if (translator.Items.Count == 0) { @@ -84,6 +84,12 @@ namespace umbraco.presentation.dialogs } } + private bool UserHasTranslatePermission(BusinessLogic.User u, CMSNode node) + { + //the permissions column in umbracoUserType is legacy and needs to be rewritten but for now this is the only way to test + return u.GetPermissions(node.Path).Contains("4"); + } + protected void doTranslation_Click(object sender, EventArgs e) { // testing translate