From d8170387ba63930a101fb9cb2a115f3eda3c0fd4 Mon Sep 17 00:00:00 2001 From: hornersa Date: Tue, 13 Feb 2024 08:29:18 -0800 Subject: [PATCH] SAK-49742 Portal prevent tutorial launching for View Site As role (#12378) Co-authored-by: Horner, Sean A --- .../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)) {