From 38fb1708a4f9b72550570ffead59362d677fab15 Mon Sep 17 00:00:00 2001 From: "Horner, Sean A" Date: Mon, 12 Feb 2024 15:16:46 -0800 Subject: [PATCH] SAK-49742 Portal: Prevent tutorial launching for View Site As role --- .../org/sakaiproject/portal/charon/SkinnableCharonPortal.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portal/portal-impl/impl/src/java/org/sakaiproject/portal/charon/SkinnableCharonPortal.java b/portal/portal-impl/impl/src/java/org/sakaiproject/portal/charon/SkinnableCharonPortal.java index 72c2fe5854b6..170723d1e036 100644 --- a/portal/portal-impl/impl/src/java/org/sakaiproject/portal/charon/SkinnableCharonPortal.java +++ b/portal/portal-impl/impl/src/java/org/sakaiproject/portal/charon/SkinnableCharonPortal.java @@ -1521,7 +1521,7 @@ public void includeBottom(PortalRenderContext rcontext, Site site) { rcontext.put("neoChatVideo", Boolean.valueOf(portalChatVideo)); rcontext.put("portalVideoChatTimeout", portalChatVideoTimeout); - if (sakaiTutorialEnabled && thisUser != null) { + if (sakaiTutorialEnabled && thisUser != null && ! userDirectoryService.isRoleViewType(thisUser)) { String userTutorialPref = preferences.getProperties() != null ? preferences.getProperties().getProperty("sakaiTutorialFlag") : ""; log.debug("Fetched tutorial config [{}] from user [{}] preferences", userTutorialPref, thisUser); if (!StringUtils.equals("1", userTutorialPref)) {