File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import { CHECKIN_SERVICE_ID } from '../constants';
22
22
import { isMobileAttached , initiateMobileScan } from '../mobile' ;
23
23
import { withContext } from '../shared/ContextProvider' ;
24
24
import { getScanResult } from './scannerUtil' ;
25
+ import { userCanView } from '../util' ;
25
26
import ServiceList from '../services/ServiceList' ;
26
27
import ScannerMenu from './ScannerMenu' ;
27
28
import ScanDisplay from './ScanDisplay' ;
@@ -294,7 +295,7 @@ class Scanner extends Component {
294
295
let dailyEvent = this . getDailyEvent ( ) ;
295
296
let dailyEventExists = events . find ( e => e . name === dailyEvent . name ) ;
296
297
297
- if ( dailyEventExists === undefined ) {
298
+ if ( dailyEventExists === undefined && userCanView ( ) ) {
298
299
events = events . concat ( dailyEvent ) ;
299
300
}
300
301
You can’t perform that action at this time.
0 commit comments