From d7ddbfec35f3731fef0d2924a0b9560ddbfb8aa7 Mon Sep 17 00:00:00 2001 From: Tom Fulton Date: Mon, 19 Mar 2018 18:51:13 -0600 Subject: [PATCH] U4-11133 - Fix access check for Unpublish button The logic to show the Unpublish button was checking for "Publish" (U) permission rather than "Unpublish" (Z) --- .../src/common/services/contenteditinghelper.service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/common/services/contenteditinghelper.service.js b/src/Umbraco.Web.UI.Client/src/common/services/contenteditinghelper.service.js index 6aab9a655c..420e136507 100644 --- a/src/Umbraco.Web.UI.Client/src/common/services/contenteditinghelper.service.js +++ b/src/Umbraco.Web.UI.Client/src/common/services/contenteditinghelper.service.js @@ -246,7 +246,7 @@ function contentEditingHelper(fileManager, $q, $location, $routeParams, notifica //if we are not creating, then we should add unpublish too, // so long as it's already published and if the user has access to publish if (!args.create) { - if (args.content.publishDate && _.contains(args.content.allowedActions, "U")) { + if (args.content.publishDate && _.contains(args.content.allowedActions, "Z")) { buttons.subButtons.push(createButtonDefinition("Z")); } }