Hide space activity

Bruce Schlueter November 18, 2012

Hi all,

is there a way to hide the space activity (Browse / activity) from certain groups? We don't want everybody to see this. Will it also be hidden if you are on pages (Browse / pages) where the different possibilities are shown as tabs?

Thanks,

Bruce

3 answers

0 votes
Bruce Schlueter November 19, 2012

Hi Amalia,

thanks for your input but unfortunately we are usingthe Documentation Theme. The easy way you described does not work there (which would suffice). Is there an easy way to change this in the theme or does it mean to change the jar files?

Regards, Bruce

0 votes
Amalia
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 19, 2012

The simplest and easiest way is to hide/remove the contents of the Activity tab (instead of hiding the menu and tab). This can be done using JavaScript. Go to Confluence Admin > Layouts and click Create Custom/Edit on Main Layout. Add the following lines of codes before the closing tag of "head" (i.e. before </head>):

#if ($userAccessor.hasMembership('confluence-users', $helper.action.remoteUser.name))
	&lt;script&gt;
		AJS.toInit(function(){
			AJS.$('.space-activity').remove();
		});
	&lt;/script&gt;
#end

This will hide the contents of Activity tab from the confluence-users group. Please note that users are still able to see the contents if they view the source of the page

If you want to completely remove the contents of the page, then you'll need to edit the JAR file of the Usage Tracking Plugin. Go to <confluence-install>/confluence/WEB-INF/classes/com/atlassian/confluence/setup and open atlassian-bundled-plugins.zip. Locate and open usage-tracking-plugin-x.xx.x.jar which is the JAR file of the plugin. The file that you need to look at is located in templates/usage, called report-controls.vm. Please refer to the following documentation for more info:

0 votes
AlysonA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 18, 2012

Hi Bruce,

I'm afraid there isn't a permission option for the Space Activity since it is a plugin that can be disabled by your system administrator.

You may be able to customize Confluence in order to hide this option from certain groups/users, but that would require some level of coding skills. Let's hope someone else with more expertise than me can help you out.

Cheers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events