Skip to end of metadata
Go to start of metadata

When you want to hide some menu for anonymous users, Custom HTML is useful.


Solution

  1. Navigate to Confluence Administration page >> Custom HTML.
  2. Click Edit.
  3. Add the following to At the end of the HEAD section and click Save:


<script>
  AJS.toInit(function(){
    if (AJS.params.remoteUser == ''){
      AJS.$("#space-tools-menu-trigger").hide();
    }
  });
</script>