title: Disable Add/edit categories in WYSIWYG editor - MediaWiki
body: <p>I want to disable /hide the Add/edit categories button in WYSIWYG editor based on the user group.</p>
  
  <p>That is, that category creation option should be visible only for bureaucrat and sysop ( admin ). For other user groups/ other registered users, this option should be either disabled or hidden.</p>
  
  <p>I have added the below code in localsettings.php.</p>
  
  <pre><code> require_once( "$IP/extensions/WYSIWYG/WYSIWYG/WYSIWYG.php" );
   $wgGroupPermissions['*']['wysiwyg'] = true;
  </code></pre>
  
  <p>The above code allows all users to use the WYSIWYG editor. But i want to restrict category creation only to bureaucrat &amp; sysop.<a href="https://i.stack.imgur.com/Z39TQ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Z39TQ.jpg" alt="Editor toolbar"></a></p>
  
  <p>You can see a "C" icon in the toolbar which is to add/edit categories . I want to restrict the display of the C icon to bureaucrats only. Other user groups shouldnot be able to add categories using that C icon from toolbar. So i want to hide or disable that icon based on the logged in user group.</p>
  
  <p>How to achieve this?</p>
  
  <p>Any help is appreciated.</p>