Remove restore option for deleted Communities

We are cleaning our Connections environment. Old Communities have been removed. We want to remove the restore button for Community owners to make sure that deleted Communities can only be restored by a Connections Admin. Any ideas?

Depends on what you want to achive:

1) Visual change. Just remove the button for the users. You can do this by:

1.1) using customizer to remove the HTML code

1.2) use a standard customization (old WebSphere Javascript) to remove the button from the HTML page.

1.3) use CSS to hide the button

2) Functional change

This is way more complicated. Usually there is no way to to modify API or back end calls so very experienced users are able to use the API to overcome the limitation but this is really a very limited amount of users who can do this, so I would not bother about this scenario.

3) configuration change

I'm not aware that this can be configured but I might be wrong.

Martin

Hi Frank,

We discussed this issue today and came up with a couple ideas:

1) You could change the owner of the community before deleting, which would remove the restore option. But this option might be too late since it seems you've already deleted the communities.

2) You could do a redirect or disable via HTTP server of https://<connections server>/communities/service/html/trashedcommunities

This would prevent the restore page from being displayed, but it would affect all users. You'd need to have some logic in place outside of Connections to allow access to the trash if you wanted administrators to be able to restore.

Martin provided some great feedback as well. I'm also not aware of a Connections configuration that would disable this restore for users, but hopefully one of the ideas might be workable for your situation.

Happy connecting,

Wes

Hi Frank,

I saw that you got some excellent suggestions already. If you want to follow Martin's suggestion of hiding the button, the button has the following html code:

<button tabindex="0" class="community-restore community-action bx--btn bx--btn--secondary" type="button">Restore</button>

That means that the following code in your custom.css would hide the button:

button.community-restore { display:none !important; }

Thanks!