Login screen and slide menu

I have an application with slide menu, routed correctly and displays the screens / views.

I need when start the application,suppose should add logic in app.run, check a condition (if the user is logged in). If it is true, as now, shows the menu slide. But if it is not true, show a login screen. Do not display the menu in this case, or allow navigate to another view.
How do I hide the menu? Some guiding example to make something similar?

Newly entered the ionic and angular world. Thanks for your time

Sorry, I found similar post later:

But something is wrong, I can not hide the menu, try a variable in menu.html and $ionicSideMenuDelegate.canDragContent. Some help?


    <ion-side-menus enable-menu-with-back-views="false">
  <ion-side-menu-content drag-content="true">
    <ion-nav-bar class="bar-balanced">

      <ion-nav-buttons side="left">
        <button class="button button-icon button-clear ion-navicon" menu-toggle="left">
    <ion-nav-view name="menuContent" animation="slide-left-right"></ion-nav-view>
  <ion-side-menu side="left">
    <ion-header-bar class="bar-energized">
      <h1 class="title">Ranking Metro</h1>
    <ion-content class="has-header">
        <ion-item nav-clear menu-close href="#/app/ranking">Ranking</ion-item>
        <ion-item nav-clear menu-close href="#/app/enviarrdo">Enviar Resultado</ion-item>
        <ion-item nav-clear menu-close href="#/app/perfil">Perfil</ion-item>
        <ion-item nav-clear menu-close href="#/app/clubes">Clubes</ion-item>
        <ion-item nav-clear menu-close href="#/app/contacto">Contacto</ion-item>


angular.module('rm.menuctrl', [])

.controller('MenuCtrl', function($scope, $ionicSideMenuDelegate, Config) {
    var slideSideMenu = Config.slideSideMenu;