Can this script that is used to hide the Space Tools from anonymous user also be used to hide the The Space Tools from specific users and/or groups? I want to hide the Space Tools/hamburger menu from specific users who only need to view the content on the page. They can share, edit, nothing.
Here is the original script from the KBs
<script>
AJS.toInit(function(){
if (AJS.params.remoteUser == ''){
AJS.$("#space-tools-menu-trigger").hide();
}
});
</script>
Thanks.
Have a look on global, space and site permissions as mentioned here in documentation. If you have a defined group it's easier to manage it with permissions I think.
If you don't have the permission to edit something you won't see the tools.
Hope this helps
Thanks for the reply. I di try this before, but whatever user I test it on they still have access to the sidebar and Hamburger menu. Giving the user account "View" only access isn't enough to hide the sidebar unless I'm doing something wrong.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.