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
parent ed6fdc732e
commit b7c0fde5e4
2 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>We will be back in a moment.</title>
<title>We will be back in a moment</title>
<link rel="stylesheet" type="text/css" href="/static/oxjs/build/Ox.UI/css/Ox.UI.css"/>
<style>
body {

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 {