fix(torrents): reomve redundant login check code

This commit is contained in:
OldHawk
2017-10-22 21:40:24 +08:00
parent 36deb6e3a4
commit a16793e2fd
30 changed files with 8 additions and 193 deletions

View File

@@ -15,13 +15,6 @@
vm.user = Authentication.user;
vm.forumPath = [];
/**
* If user is not signed in then redirect back home
*/
if (!Authentication.user) {
$state.go('authentication.signin');
}
/**
* init
*/

View File

@@ -23,13 +23,6 @@
vm.forumPath = [];
vm.postReplyFields = {};
/**
* If user is not signed in then redirect back home
*/
if (!Authentication.user) {
$state.go('authentication.signin');
}
/**
* buildPager
* pagination init

View File

@@ -16,13 +16,6 @@
vm.user = Authentication.user;
vm.forumPath = [];
/**
* If user is not signed in then redirect back home
*/
if (!Authentication.user) {
$state.go('authentication.signin');
}
/**
* buildPager
* pagination init

View File

@@ -14,13 +14,6 @@
vm.forumsConfig = MeanTorrentConfig.meanTorrentConfig.forumsConfig;
vm.user = Authentication.user;
/**
* If user is not signed in then redirect back home
*/
if (!Authentication.user) {
$state.go('authentication.signin');
}
/**
* init
*/