title: ZF2 - Checking permissions for get parameter in each action
body: <p>I have a Controller called "TestController" and several actions in it. For each action I receive a get Parameter ("id"). 
  Something like: </p>
  
  <pre><code>test/action1/1
  test/action1/2
  test/action2/1
  test/action3/1
  ...
  </code></pre>
  
  <p>Since this parameter can easily be modified I want to check the permissions for this id. Do I have to include this check method in each single action or is there another way? I know that I can't receive params in the constructor but a way like this would be nice.</p>
  
  <p>My solution at the moment would be to have a check method in a plugin and call it in every action like this:</p>
  
  <pre><code>if(!$this-&gt;access()-&gt;checkAccess(..., $this-&gt;params()-&gt;fromRoute('id')) {
   //redirect...
  }
  </code></pre>