How to display specific button for certain user?
To hide and show buttons by role you can use the $GLOBALS to get the user and check on user role, something like.
 &lt;?php if (in_array('role 1', $GLOBALS[&quot;user&quot;]-&gt;roles)): ?&gt;
    &lt;button value=&quot;button 1&quot;&gt;button 1&lt;/button&gt;
  &lt;?php else: ?&gt;
    &lt;button value=&quot;button 2&quot;&gt;button 2&lt;/button&gt;
    &lt;button value=&quot;button 3&quot;&gt;button 3&lt;/button&gt;
  &lt;?php endif; ?&gt;