-
Notifications
You must be signed in to change notification settings - Fork 532
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
Cannot uncheck Allow everyone to read checkbox #49
Comments
This will happen if the value for the "read" action when setting up the permissions plugin is an empty array, ie. publicly readable. In this case the checkbox cannot be used because there are no permissions to apply to it if the box were to be unchecked. So we freeze it. The checkbox can be hidden in this case by setting the (currently undocumented)
I will document this and |
Documented under the options heading. http://github.com/okfn/annotator/wiki/Permissions-Plugin |
Not sure this is really the right way it should work. We want to allow people to restrict access if they want. Why couldn't unchecking simply result in current user id being put in the read list? Generally this suggests we should rework the authorization system to explicitly denote 'everyone'. |
Take the current example:
It should be possible to uncheck this checkbox if an admin (Alice) is viewing the annotation. Otherwise the checkbox should be permanently disabled (or not even displayed to the user?). Once unchecked the current user's id should be inserted into the 'read' array. (Question: should all annotation admins be inserted into the 'read' array? Probably). We have decided to postpone this ticket for now as there remains a larger discussion to be resolved regarding the implementation of permissions. |
Okay, let's reopen this conversation. When I originally designed the permissions plugin, the meaning of I agree with Aron that if the viewing user doesn't have 'admin' authorisation for the current annotation (which for AnnotateIt they do have by default for annotations they created) then we shouldn't display any Permissions UI. |
So, note to self: this needs fixing, as users using AnnotateIt should be able to prevent their annotations showing up in public-readable searches, if they so desire. |
Is this not possible now by adding their id into the
No, I don't think their is anyway that you can specify the latter without putting the creators (or someones) id into the array. Although that said, this might be possible by putting |
Yes, it is, but the UI doesn't actually allow you to uncheck the box that would do that! As for the second issue, I think it's probably less of a concern now. It doesn't make that much sense to allow people to prevent themselves from deleting an annotation. |
Closed by 7cae58b |
I believe it allowed you to uncheck it if you put the id in the @options.permissions when the plugin was loaded. That's why it was storing the id in the data attribute. Your update is simpler for now anyway. |
If you set up bookmarklet to have a default of allowing everyone to read the checkbox cannot be unchecked in the UI.
The text was updated successfully, but these errors were encountered: