I can hide the menu using follwing script from confluence-user as well as confluence-administrator.
<script>
AJS.toInit(
function
(){
if
(AJS.params.remoteUser ==
''
){
AJS.$(
'#browse-menu-link'
).hide();
}
});
<
/script
>
But, I want to hide menu to a Group, Is there any script to hide a menu from a group?
i dont think you will get the groups in javascript and there is no REST to get groups, check this
another way is you can create REST Plugin and later you can access it from javascript
check this document to know how to develop REST plugin
https://developer.atlassian.com/display/DOCS/REST+Plugin+Module
Thanks its working :)
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.