How to hide the "Edit" or "Edit Contents" button
Answer
You can use a combination of the Visibility app with the Style macro to show the button only to space administrators.
To hide the Edit button:
To hide the Edit Contents button:
Since we introduced the in-page editor, the ID of the Edit Contents button has been changed from editScaffoldLink to edit-scaffold-link.
You can also enable the HTML Macro, however, be aware that enabling these macros can make your Confluence site vulnerable to cross-site scripting attacks.