title: how to use filter in grails
body: <p>I have a filter that i want to filter every action except ONE that brings me to login page.
  <br>If i filter all pages with some condition then even the LOGIN page too get filtered and so it stuck in infinte loop as condition not fulfilled (User not Logged IN).
  <strong>session.getAttribute("CurrentEmployeeIds")</strong> it tell whether user is logged in or not</p>
  
  <p><br> My filter here:</p>
  
  <pre><code>class LoginFilters {
  
      def filters = {
          all(controller:'dashboard', action:'*') {
              before = {
                  if (session.getAttribute("CurrentEmployeeIds")==null) {
                      redirect(controller:"site",action:"index")
                      return false
                  }
              }
              after = { Map model -&gt;
  
              }
              afterView = { Exception e -&gt;
  
              }
          }
      }
  }
  </code></pre>
  
  <p>I want to filter in such a way that it don't filter <code>controller:"site",action:"index"</code> this url and filter everything else.
  <br> thanks in advance.</p>