diff options
author | Vitaly Takmazov | 2018-04-01 22:21:20 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-04-01 22:21:20 +0300 |
commit | 677397be225a3b34f4b26e573fd067f73f9eb75c (patch) | |
tree | 0cfc86aa5e344d47203e7724fcf5b3c16635074d /Juick/ViewControllers/DiscoverViewController.m | |
parent | f2ad6e8f2bbca27cb9c4777adb581d169c77057b (diff) |
Fix login
Diffstat (limited to 'Juick/ViewControllers/DiscoverViewController.m')
-rw-r--r-- | Juick/ViewControllers/DiscoverViewController.m | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Juick/ViewControllers/DiscoverViewController.m b/Juick/ViewControllers/DiscoverViewController.m index c874c25..fde23ee 100644 --- a/Juick/ViewControllers/DiscoverViewController.m +++ b/Juick/ViewControllers/DiscoverViewController.m @@ -74,6 +74,10 @@ AppDelegate *appDelegate; } } - (IBAction)filterAction:(id)sender { + if (![User isAuthenticated]) { + [self performSegueWithIdentifier:@"loginSegue" sender:self]; + return; + } UIAlertController *filterAlert = [UIAlertController alertControllerWithTitle:nil message:nil preferredStyle:UIAlertControllerStyleActionSheet]; [filterAlert addAction:[UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleCancel handler:nil]]; [filterAlert addAction:[UIAlertAction actionWithTitle:@"My feed" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) { |