Hide module button

Everything related to development of the jamovi platform
Post Reply
vmoreno
Posts: 21
Joined: Mon Jun 05, 2017 6:04 pm

Hide module button

Post 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
vmoreno
Posts: 21
Joined: Mon Jun 05, 2017 6:04 pm

Re: Hide module button

Post by vmoreno »

I found the answer:

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

// this.buttons.push(button);
User avatar
jonathon
Posts: 2613
Joined: Fri Jan 27, 2017 10:04 am

Re: Hide module button

Post 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
alishakihn
Posts: 4
Joined: Mon Jul 31, 2023 11:30 pm

Re: Hide module button

Post 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
Post Reply