title: problem with access controle for modules in yii2
body: <p>i have two type of user in my project.<br>
  1.user<br>
  2.admin<br>
  i defined module for each one of them.<br>
  module name for user = users/default/login<br>
  module name for admin = adclash/default/login<br></p>
  <p>when i login with adclash/default/login i should have access only to all adclash controllers but also i have access to all controllers in another module(users) to.(if i login with adclash when i shouldnt have access to users module)
  whats wrong?<br></p>
  <p>define my users in web.php :<br></p>
  <pre><code>    'user'=&gt;[
          'class'=&gt;'yii\web\User',
          'identityClass' =&gt; 'app\models\User',
          'enableAutoLogin' =&gt; false,
          'authTimeout' =&gt; 60*60,
          'loginUrl' =&gt; ['users/default/login'],
          'identityCookie' =&gt; [
              'name' =&gt; '_panelUser',
          ]
      ],
      'admin'=&gt;[
          'class'=&gt;'yii\web\User',
          'identityClass' =&gt; 'app\models\Admin',
          'enableAutoLogin' =&gt; false,
          'authTimeout' =&gt; 60*30,
          'loginUrl' =&gt; ['adclash/default/login'],
          'identityCookie' =&gt; [
              'name' =&gt; '_panelAdmin',
          ]
      ],
  </code></pre>
  <p>and this my defaultControllers source:<br>
  adclah module:<br></p>
  <pre><code>public function behaviors()
  {
      return [
          'access' =&gt; [
              'class' =&gt; AccessControl::className(),
              'user'=&gt;'admin', // this user object defined in web.php
              'rules' =&gt; [
                  [
                      'actions' =&gt; ['login', 'error'],
                      'allow' =&gt; true,
                  ],
                  [
                      'allow' =&gt; true,
                      'roles' =&gt; ['@'],
                  ],
  
              ],
  
          ],
      ];
  }
  </code></pre>
  <p>users module:<br></p>
  <pre><code>public function behaviors()
  {
      return [
          'access' =&gt; [
              'class' =&gt; AccessControl::className(),
              'user'=&gt;'user', // this user object defined in web.php
              'rules' =&gt; [
                  [
                      'actions' =&gt; ['login', 'error','signup'],
                      'allow' =&gt; true,
                  ],
                  [
                      'allow' =&gt; true,
                      'roles' =&gt; ['@'],
                  ],
  
              ],
  
          ],
      ];
  }
  </code></pre>