title: View activity log section only for super_admin - Pundit gem
body: <p>I have a page which lists the activity logs. It needs to be displayed only when the user role is super_admin. I have written the code as follows.</p>
  <pre><code>&lt;% if current_user.super_admin? %&gt;
      &lt;div class=&quot;table&quot;&gt;
        &lt;div class=&quot;table-header&quot;&gt;
          &lt;span&gt;Activity&lt;/span&gt;
          &lt;span&gt;Activity Done By&lt;/span&gt;
          &lt;span&gt;Activity Done On&lt;/span&gt;
        &lt;/div&gt;
  ...
  %&gt;
  </code></pre>
  <p>Is there a way to achieve this using the pundit gem. Something like
  adding a policy in application.policy.rb.</p>
  <p>Something like</p>
  <pre><code>def view_status_log?
    user.super_admin? or user.admin?
  end
  </code></pre>
  <p>How to use it in the rails view?</p>