fix bug regarding signed in users loading /signin and signed out users loading /signout

This commit is contained in:
rolux 2011-12-23 14:17:12 +00:00
commit b7c0fde5e4
2 changed files with 3 additions and 3 deletions

View file

@ -66,11 +66,11 @@ pandora.ui.appPanel = function() {
pandora.$ui.accountDialog = pandora.ui.accountDialog(page).open();
}
} else {
pandora.URL.replace('/');
pandora.UI.set({page: ''});
}
} else if (['preferences', 'signout'].indexOf(page) > -1) {
if (pandora.user.level == 'guest') {
pandora.URL.replace('/');
pandora.UI.set({page: ''});
} else if (page == 'preferences') {
pandora.ui.preferencesDialog().open();
} else {