gem / oq-platform

DEPRECATED. Please refer to https://github.com/gem/oq-platform2
8 stars 3 forks source link

When a content is created is by default shared with everyone #632

Open daniviga opened 7 years ago

daniviga commented 7 years ago

We would like to leave the content private by default and then let the user to share it.

screenshot from 2017-02-08 14-41-49

daniviga commented 7 years ago

@pslh suggested to keep the behavior as it is now.

Anyway, the change is one line, but it must be done in GeoNode: https://github.com/gem/geonode/blob/2.0.x/geonode/maps/models.py#L303 must be changed to LEVEL_NONE

    def set_default_permissions(self):
        self.set_gen_level(ANONYMOUS_USERS, self.LEVEL_NONE)
        self.set_gen_level(AUTHENTICATED_USERS, self.LEVEL_NONE)

We must check how this is managed in GeoNode 2.5