Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Commit

Permalink
add more checks for announcements
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Levett committed Sep 15, 2016
1 parent 7ea17ff commit e37d2e5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions uw-frame-components/portal/features/controllers.js
Expand Up @@ -110,9 +110,12 @@ define(['angular','require'], function(angular, require) {
delete $localStorage.lastSeenFeature;
delete $localStorage.hasSeenWelcome;
//Mode is set to bucky or bucky_mobile to signal mascot init of controller
if("BUCKY" === $scope.mode || "BUCKY_MOBILE" === $scope.mode) {
if(("BUCKY" === $scope.mode || "BUCKY_MOBILE" === $scope.mode)
&& !$rootScope.GuestMode) {
portalFeaturesService.getUnseenAnnouncements().then(function(unseenAnnouncements) {
$scope.announcements = unseenAnnouncements;
if(!$rootScope.GuestMode){
$scope.announcements = unseenAnnouncements;
}
});
setMascot();
}else{
Expand Down

0 comments on commit e37d2e5

Please sign in to comment.