Page 1 of 1

Hide module button

Posted: Thu Oct 27, 2022 11:41 am
by vmoreno
Hi,
Is there an easy way to hide the module button from the docker version?
Perhaps a line of code I have to comment to avoid showing the button in the ribbon

I want to restrict students to install modules. Since the container is run by root, even if I write protect /root/.jamovi/modules the modules get installed

Thanks

Victor

Re: Hide module button

Posted: Thu Oct 27, 2022 6:26 pm
by vmoreno
I found the answer:

in line 119 of jamovi/client/main/ribbon/analysetab.js

// this.buttons.push(button);

Re: Hide module button

Posted: Thu Oct 27, 2022 9:24 pm
by jonathon
we can do better than that!

you can set the environmental variables:

JAMOVI_MODE_CLOUD: '1'
JAMOVI_PERMISSIONS_LIBRARY_BROWSEABLE: '0'
JAMOVI_PERMISSIONS_LIBRARY_ADD_REMOVE: '0'
JAMOVI_PERMISSIONS_LIBRARY_SHOW_HIDE: '0'

https://github.com/jamovi/jamovi/blob/current-dev/server/jamovi/server/permissions.py#L39-L52

jonathon

Re: Hide module button

Posted: Wed Dec 13, 2023 7:31 am
by alishakihn
jonathon wrote: Thu Oct 27, 2022 9:24 pm we can do better than that!

you can set the environmental variables:

JAMOVI_MODE_CLOUD: '1'
JAMOVI_PERMISSIONS_LIBRARY_BROWSEABLE: '0'
JAMOVI_PERMISSIONS_LIBRARY_ADD_REMOVE: '0'
JAMOVI_PERMISSIONS_LIBRARY_SHOW_HIDE: '0'

https://github.com/jamovi/jamovi/blob/c ... py#L39-L52

jonathon
I found the answer.Thank so much! Super Mario