title: Redmine: check if the user has a specific privilege
body: <p>Trying to write a plug-in for which I need to check if the user has a particular permission .
  For example 
  I am thinking of something like this</p>
  
  <pre><code>if (user.current has "view_private_notes" ) 
  do something
  end
  </code></pre>