diff --git a/UI/WebServerResources/js/Scheduler/CalendarsController.js b/UI/WebServerResources/js/Scheduler/CalendarsController.js index f1a0da2e5..3dfa227ad 100644 --- a/UI/WebServerResources/js/Scheduler/CalendarsController.js +++ b/UI/WebServerResources/js/Scheduler/CalendarsController.js @@ -147,17 +147,19 @@ } function share(calendar) { - $mdDialog.show({ - templateUrl: calendar.id + '/UIxAclEditor', // UI/Templates/UIxAclEditor.wox - controller: CalendarACLController, - controllerAs: 'acl', - clickOutsideToClose: true, - escapeToClose: true, - locals: { - usersWithACL: calendar.$acl.$users(), - User: User, - folder: calendar - } + calendar.$acl.$users().then(function() { + $mdDialog.show({ + templateUrl: calendar.id + '/UIxAclEditor', // UI/Templates/UIxAclEditor.wox + controller: CalendarACLController, + controllerAs: 'acl', + clickOutsideToClose: true, + escapeToClose: true, + locals: { + usersWithACL: calendar.$acl.users, + User: User, + folder: calendar + } + }); }); /**