How do I disabled editing of comments?

How do I disable the editing of comments by a space admin? I can understand the add / remove permission, but globally I want to the ability to disable the editing of someone else's comments. How can I do this?

1 answer

Hi Jeffrey,

The global permissions in Confluence operate at a much higher level, have a look at the page:

https://confluence.atlassian.com/display/DOC/Global+Permissions+Overview

the permission to edit comments is controlled on a space by space basis by an admin. If you want to block a space admin, they can just over ride it and give themselves the permission again.

There are some tricks you could pull to try and block the space permission URL using apache HTTPD in front of Confluence....

Or... you could write a macro to query the confluence API to look at space permissions object and report on anyone who has it that shouldn't

But I think it should be more about education than enforcement

Found a way to do it by js:

<script>
  AJS.toInit(function() {
    AJS.$('.comment-header').each(function() {
      var u = $(this).children('.author').children('a.url').attr('data-username');
      if (AJS.params.remoteUser != u) {
        $(this).siblings('.comment-body').find('.comment-action-edit').remove();
      }
    });
  });
</script>

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,101 views 17 14
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you