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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.