About Poll Permissions

Events happening in the community are now at Drupal community events on www.drupal.org.
Rosamunda's picture

Hi there!
I think that we can make a follow up of this discussion here, because it will be a mess if we chat about features in the issue queue.
Lets see what we´ve been talking about there, to make a proper folow up here:

We started talking about poll stuff that´s inside the poll field. It should have some kind of permissions, so administrators can set exactly how they want users to use that poll options, and if they want those to be used at all. Pollfield has many choices.

Mario explained that the pollfield is just one field, so it can´t use field_permissions.module.

Since then, Mario added some improvement to the original code, but as it´s something like "all or nothing" without refinement in internal pollfield stuff, he thought that it could be better to discuss this more, about the possibilities.

In summary:

1. permission by node module (edit any, edit own, delete any, delete own and create)
- this related to whole node
2. permission by content_permissions module (we edit and view permission)
- this is related to the cck fields
- those permissions are subordinate to permission by node module
3. permission by pollfield module (see results and admin pollfield)
- this is related on pollfield strictly
- those permissions are subordinate to content_permissions

For now I see problem that if you not allowed user to administer node they don't have any way to admin poll.
Another thing what I notice some people want that anonymous cant post the poll but that only author can edit.
This is very hard issue because there is no good way for tracking anonymous users (see http://drupal.org/node/616954).

Your suggested permission is very reasonable. We need to figure where to put it, is there any overlapping with existing permission, can we achieve this through existing permission, what we want that can not be achieved by paradigm?

I will be very happy if you can point some cases you encountered where we can see weakness of existing system of permissions and maybe some suggestion for solution. I know you already made some but I just want to have it this one place.

Please read that discussion first and let´s follow up here. This way we can think of more uses of pollfield, until it finally conquer the world. :)

Rosamunda

Comments

Can we say that we need editing beside node edit?

mario_prkos's picture

Main idea is user can edit pollfield without node edit permission. For now this is not a case!
Second how this permission look like:
for example
edit type of poll
edit anonymouse voting policy etc.
and of course permission to edit at all.

If we agree upon the solution I can start to implement.
Please take moment and give us suggestions!