geosolutions-it / oaw-geonode

OWA GeoNode Project
0 stars 0 forks source link

GeoNode: hide register and signin buttons #18

Closed chpicone closed 3 years ago

chpicone commented 3 years ago

Customer is asking to hide the Register and Sign in buttons (elements B in the following picture). image.png He would allow this in a later step of the project.

chpicone commented 3 years ago

After discussion with @allyoucanmap and @giohappy we agree to hide just the register button and to mantain the sigin button (mainly for the admin user)

chpicone commented 3 years ago

We still have the "Register" button visible!

image

chpicone commented 3 years ago

Can you take a look @marthamareal?

chpicone commented 3 years ago

Is it necessary to set some variables?

marthamareal commented 3 years ago

Yes this can be set using a variable, however, i had added a default to be false here. but I think the change was lost on resolving conflicts.

mattiagiupponi commented 3 years ago

Yes this can be set using a variable, however, i had added a default to be false here. but I think the change was lost on resolving conflicts.

Hi @marthamareal ! Even if is not visible in the PR (my bad!) the variable is correctly set in the settings.py file: https://github.com/geosolutions-it/oaw-geonode/blob/f04527e1c1749ae9fe38bc991abe28d7b81931d8/oaw_geonode/settings.py#L61 In order to hide the item, should we put it as True?

marthamareal commented 3 years ago

In order to hide the item, should we put it as True?

No @mattiagiupponi it should be false, @chpicone could we check if this is variable ACCOUNT_OPEN_SIGNUP set in the project environment?