unclean SPARC
This commit is contained in:
Executable
+40
@@ -0,0 +1,40 @@
|
||||
class EICAppController extends MasterController {
|
||||
|
||||
ControllerReady() {
|
||||
// setting up session interactions
|
||||
if(app.User.isAuthenticated) {
|
||||
this.profile = this.content.initSession();
|
||||
}
|
||||
}
|
||||
|
||||
onBusConnected() {
|
||||
//if('MBRendezVous' in app.LoadedClasses) app.MessageBus.rendezVous = new MBRendezVous(this)
|
||||
|
||||
app.MessageBus.addBusListener(
|
||||
'growl',
|
||||
['system:notifs',
|
||||
app.config.messageBus.userNotifChan.replace(/\{uid\}/g, app.User.identity.uuid)
|
||||
],
|
||||
(chan, payload, sender) => {
|
||||
ui.growl.append(payload.growlMessage, payload.growlSeverity, 1000*payload.growlTime)
|
||||
}
|
||||
)
|
||||
|
||||
app.MessageBus.addBusListener(
|
||||
'kick',
|
||||
['system:notifs',
|
||||
app.config.messageBus.userNotifChan.replace(/\{uid\}/g, app.User.identity.uuid)
|
||||
],
|
||||
(chan, payload, sender) => {
|
||||
if(app.User.hasRole('EIC_Admin') || app.User.hasRole('EIC_Dev')) return
|
||||
app.User.logout()
|
||||
}
|
||||
)
|
||||
|
||||
app.User.loadPreferences();
|
||||
|
||||
//if('ChatModule' in app.LoadedClasses) this.chat = new ChatModule(this.content);
|
||||
}
|
||||
}
|
||||
|
||||
app.registerClass('EICAppController', EICAppController);
|
||||
Reference in New Issue
Block a user