Skip to content
This repository has been archived by the owner on May 28, 2019. It is now read-only.

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

Open
daniviga opened this issue Feb 8, 2017 · 1 comment
Open

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

daniviga opened this issue Feb 8, 2017 · 1 comment
Assignees
Milestone

Comments

@daniviga
Copy link
Contributor

daniviga commented Feb 8, 2017

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
Copy link
Contributor Author

daniviga commented Feb 8, 2017

@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

@nastasi-oq nastasi-oq modified the milestones: 1.9.0, 1.8.0 Mar 15, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants