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
Hide module button
Re: Hide module button
I found the answer:
in line 119 of jamovi/client/main/ribbon/analysetab.js
// this.buttons.push(button);
in line 119 of jamovi/client/main/ribbon/analysetab.js
// this.buttons.push(button);
Re: Hide module button
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
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
-
- Posts: 4
- Joined: Mon Jul 31, 2023 11:30 pm
Re: Hide module button
I found the answer.Thank so much! Super Mariojonathon 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