Skip to content

Commit

Permalink
SAK-49742 Portal prevent tutorial launching for View Site As role (#1…
Browse files Browse the repository at this point in the history
…2378)

Co-authored-by: Horner, Sean A <hornersa@plu.edu>
  • Loading branch information
hornersa and hornersa authored Feb 13, 2024
1 parent 84d7865 commit d817038
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit d817038

Please sign in to comment.