Fixes: U4-3682 Can not create new documents (javascript error)

This commit is contained in:
Shannon
2013-11-26 14:03:00 +11:00
parent c89fb0a0be
commit a052fc42b1
2 changed files with 2 additions and 1 deletions

View File

@@ -218,7 +218,7 @@ angular.module('umbraco.services')
var result = { user: data, authenticated: true, lastUserId: lastUserId };
if (args.broadcastEvent) {
if (args && args.broadcastEvent) {
//broadcast a global event, will inform listening controllers to load in the user specific data
$rootScope.$broadcast("authenticated", result);
}