title: Spring security not directed where I should be
body: <p>In database I have table <code>authorities</code> and inside I have column authority, that column is populated and in this case with <code>ROLE_MANAGER</code>, also I have this inside my <code>configure</code> method in extends class <code>WebSecurityConfigurerAdapter</code></p>
  <p><code>.antMatchers(&quot;/leaders/**&quot;).hasRole(&quot;MANAGER&quot;)</code> I also have more of this but that is not important. As you can see, <code>MANAGER</code> which I also have in mysql. This is on my home page.</p>
  <pre><code>&lt;security:authorize access=&quot;hasRole('MANAGER')&quot;&gt;
  
      &lt;!-- Add a link to point to /leaders ... this is for the managers --&gt;
      
      &lt;p&gt;
          &lt;a href=&quot;${pageContext.request.contextPath}/leaders&quot;&gt;Leadership Meeting&lt;/a&gt;
          (Only for Manager peeps)
      &lt;/p&gt;
  
  &lt;/security:authorize&gt;   
  </code></pre>
  <p>This is that <code>leaders</code> mapping:</p>
  <pre><code>@GetMapping(&quot;/leaders&quot;)
      public String showLeaders() {
          
          return &quot;leaders&quot;;
      }
  </code></pre>
  <p>But when I log in with user which have role manager program send me on my page which says Im not authorized to view that content, but If I log in with user which has both role, <code>ROLE_MANAGER</code> and <code>ROLE_ADMIN</code> I can see that <code>/leaders</code> page.</p>
  <p>What can be a problem? I dont know what to try, everything seems fine, idk why wont work. I figured out that just users which has all roles can acess, If user have just one role that user cant access page that he should</p>
  <p><a href="https://github.com/jankostefan/spring_project" rel="nofollow noreferrer">I shared project on git</a></p>