title: Grails security filter all action but except one
body: <p>I'm gonna create a security filter for my project. I check <code>if !session.user then redirect to action error</code>.
  Here is my current code:</p>
  
  <pre><code>all(controller: 'accounting|installation|installer|sales|service|serviceOrder|document', action: '*') {
              before = {
                  if (!session.user) {
                      redirect(controller: 'installation', action: 'errors')
                      return false
                  }
              }
              after = { Map model -&gt;
  
              }
              afterView = { Exception e -&gt;
  
              }
          }
  </code></pre>
  
  <p>However the point is that <code>session.user</code> being created in <code>controller 'installation'</code> and <code>action 'index'</code>. So how can I filter without <code>index action</code>?
  Any suggestions  will be appreciated. Thanks.</p>