fix bug regarding signed in users loading /signin and signed out users loading /signout
This commit is contained in:
parent
ed6fdc732e
commit
b7c0fde5e4
2 changed files with 3 additions and 3 deletions
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue