title: Simple bitmasking assistance
body: <p>I have the following flags:</p>
  
  <pre><code>- edit profile =&gt; 1
  - update coupon =&gt; 2
  - update news articles =&gt; 4
  </code></pre>
  
  <p>I want to understand how can I set and check the bit mask for all the three flags (that is, the user has access to all 3 bit masks). </p>
  
  <ul>
  <li>Do we add all the bits together?</li>
  <li>What about just having access to 2?</li>
  </ul>
  
  <p>Not quite sure what to do here.</p>