summaryrefslogtreecommitdiff
path: root/Juick/ViewControllers
diff options
context:
space:
mode:
Diffstat (limited to 'Juick/ViewControllers')
-rw-r--r--Juick/ViewControllers/DiscoverViewController.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Juick/ViewControllers/DiscoverViewController.m b/Juick/ViewControllers/DiscoverViewController.m
index ea720be..94e1d16 100644
--- a/Juick/ViewControllers/DiscoverViewController.m
+++ b/Juick/ViewControllers/DiscoverViewController.m
@@ -23,7 +23,7 @@
-(void) viewDidLoad {
self.messagesDelegate = self;
- if ([User isAuthenticated]) {
+ if ([[APIClient sharedClient] isAuthenticated]) {
[[APIClient sharedClient] authenticate:^(User *user, NSError *error) {
if (user) {
if ([self.path length] == 0) {
@@ -99,7 +99,7 @@
}
}
- (IBAction)filterAction:(id)sender {
- if (![User isAuthenticated]) {
+ if (![[APIClient sharedClient] isAuthenticated]) {
[self.navigationController performSegueWithIdentifier:@"loginSegue" sender:self.navigationController];
return;
}