-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Map locking to prevent random edits or vandalism #84
Comments
Weird, I thought this was already a ticket. We must have discussed it on a list at some point. Google has a neat way of handling this. In order to share an editable document with others, you can choose to share a unique link. Of course that link cannot be controlled, so if it is intercepted or put in the wrong hands, anyone can edit the content. However, it offers the advantage of anonymous user edits as long as the people with the link can be trusted. I'd say an author can make a map public (allows anonymous users to write) or controlled (read only unless the user has a special link). This would work much like the password reset link with all the junk at the end being a random string. |
Do signed in users always get the ability to edit, or should there be an option to make maps non-editable for signed in users as well? |
you can edit maps without being signed in. would be good to choose between |
Hagit was moving this over from jywarren#149 -- This has seen various discussions and issues; it's important to distinguish between: a. locking images temporarily, which is currently the case as of #33 for any newly-opened map and also between
Hagit:
Just trying to break up this request into its parts, thanks so much Hagit for your debugging help! |
Note to self: locking images can be done on this line: https://github.com/publiclab/mapknitter/blob/master/app/views/layouts/knitter2.html.erb#L165 Locking new uploads would be a little more involved; we'd have to put a flag and maybe initializer function in the upload.js script as well as change the interface to hide buttons and so forth. |
Recap email responses:
If users are anonymous, we can't give them any extra permissions, because we can't distinguish them from anyone else since we don't have a way to identify them. So locking would have to only allow registered users. An edit history (as in this issue) really would give us less crude tools here; we could be less restrictive to new users because you could always revert their work, as in Wikipedia. But it's not a small project. Maybe it could be a GSoC project, or a fellowship? |
Hi @jywarren, can you give an update regarding this issue? |
We'll be doing "image edit history" as part of this; i think it's mapped out a bit in #300, but we should expand it in a new issue! That'll make things much easier. But true locking still faces the same basic issue:
What if we adapted this to a new issue like:
|
Summing up for 3.1 release (I hope!) we are aiming for the option at map creation time to have a checkbox that says However the author will be able to check/uncheck the box for existing maps they own (meaning not for anonymous maps). This'll mean both a new Later we may circle back to allow only edits by registered users as an additional option, We'll also need to modify the maps controller to redirect those without access to the new View page (in progress, by @cesswairimu in #777) with a flash notice Also a future plan - generating a unique token and allowing people to access the map if they have the special URL with the token, like |
solving the problem of random edits to a map that damage the data created. thinking about creating a system for editable/non-editable in maps, but also, for longer term planning, desgining the ability to send a link to the map that embeds edit/view options for users.
The text was updated successfully, but these errors were encountered: