title: Mosquitto access control - Pattern and user restriction
body: <p>I'm trying to create a pattern for regular users access control, as well as an "admin" user which has different permissions.</p>
  
  <p>Before the pattern, I've had:</p>
  
  <pre><code>user admin
  topic write +/in/#
  topic read +/out/#
  
  user john
  topic read john/in/#
  topic write john/out/#
  </code></pre>
  
  <p>And that works fine. However, when introducing more users, a pattern is needed. What I've concluded from Mosquitto's datasheet, translates to:</p>
  
  <pre><code>user admin
  topic write +/in/#
  topic read +/out/#
  
  pattern read %u/in/#
  pattern write %u/out/#
  </code></pre>
  
  <p>However, with the above configuration, connection is denied. What did I do wrong with the above configuration?</p>
  
  <p>I will also add that the patterns alone (without "admin" user configuration), it works fine. The problem that I'm facing is when I have both a pattern and specific user access control.</p>
  
  <p>Edit: might be good to add mosquitto(v1.4.15)'s configuration:</p>
  
  <pre><code>allow_anonymous false
  password_file /etc/mosquitto/passwd
  acl_file /etc/mosquitto/conf.d/access_control
  
  message_size_limit 1000
  use_username_as_clientid true
  
  log_dest file /var/log/mosquitto/mosquitto.log
  log_dest topic
  connection_messages true
  log_type all
  </code></pre>