Skip to content

Instantly share code, notes, and snippets.

@wendelb
Last active May 6, 2019 07:14
Show Gist options
  • Save wendelb/5c0e00e82c0bf34ea210262a1e48d002 to your computer and use it in GitHub Desktop.
Save wendelb/5c0e00e82c0bf34ea210262a1e48d002 to your computer and use it in GitHub Desktop.
Disable Anoymous Access Settings in Confluence

Disable Anoymous Access Settings in Confluence

Add this script in one of the custom html sections in your Confluence Administration.

This will hide the table where you can view and edit the permissions for anonymous users. But only if the currently logged in user is not a system admin.

If you don't need to show the anonymous permission table to the system admin, you may also look at: https://gist.github.com/dvdsmpsn/5748806

<script type="text/javascript">
AJS.toInit(function(){
if (AJS.$('#aPermissionsTable').length > 0) {
if (AJS.$('meta[name=ajs-goedit-has-user-admin-rights]').get(0).content !== "true") {
AJS.$('#aPermissionsTable').hide();
}
}
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment