Hallo Communicty,
I would have a question and I hope one of you already knows an answer to this.
We are using confluence for our Customers. Lately, we see the need to have "internal" discussions on spaces and we would like to use the comments for that. As it is standard, our Unlicenced customers that have access to our Service Desk, can access the spaces and also see the comments sections. Is there a way how to change that permission like you can do it in Service Desk?
Or is there any other way to have internal discussions on the page that the customers cannot read?
thanks!
br
Michael
Welcome to the Atlassian Community.
The ability to adjust a view comments permission is logged as a feature request in CONFSERVER-5639.
While this is not implemented, you might be able to work around it with some additional customization.
Confluence relies on Velocity for many of its UI components.
The Velocity template that regulates the Page display in the UI is <confluence-install>/confluence/decorators/page.vmd.
The portion in this template that display the comments section is the following:
#applyDecorator("root")
#decoratorParam("sitemeshPage" $sitemeshPage)
#decoratorParam("page" $page)
#decoratorParam("context" $comments)
#end
You can customize this layout in a way that only authenticated users that has editing permissions would be able to see the comments section.
This layout can be customized on a Space-level by:
#if ($permissionHelper.canEdit($authenticatedUser, $action.page))
#applyDecorator("root")
#decoratorParam("sitemeshPage" $sitemeshPage)
#decoratorParam("page" $page)
#decoratorParam("context" $comments)
#end
#end
When an authenticated user, with proper permissions, access any page in that Space, the comments section will be presented as usual.
If an unauthenticated (anonymous) user access the same page, then this section isn't presented in the UI.
It's important to note that you may customize this layout as you wish and this is just a sample of a possible workaround.
While Atlassian Support won't assist you with customization, the product is flexible enough if you know what you are doing and the consequences.
I hope that helps.
Kind regards,
Thiago Masutti
I've made some changes to the above suggestion and created a document for it.
Please check it and let me know if that helps you.
Regards,
Thiago
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Thiago Masutti: Worked like a charm! thank you. Looking forward for the permission settings in the future but for now, it is exactly what I was looking for.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.