fix create realm

This commit is contained in:
Bill Burke 2014-05-12 15:42:10 -04:00
parent 0fcebb8670
commit b1a480c20d

View file

@ -201,7 +201,7 @@ module.controller('RealmCreateCtrl', function($scope, Current, Realm, $upload, $
Realm.query(function(data) {
Current.realms = data;
$http.get(authUrl + '/admin/whoami').success(function(user) {
WhoAmI.get(function(user) {
Auth.user = user;
$location.url("/realms/" + realmCopy.realm);