PDA

View Full Version : [fixed] Problem with unregistered users and polls.



SneakyDave
Tue 15th May '01, 12:12pm
OK, I've worked around this problem, but I don't know why it doesn't work the way I want it to.

In one of my forums, I've enabled unregistered users to create polls, and vote on polls.

Here's the question. Do accomplish this, originally, I went to the forum's permissions (in usergroups & permissions), and modified it so that unregistered users had the ability to post polls and vote on polls, the other forums use the default, which doesn't allow unregistered users to create or vote on polls.

After I changed this, the forum was still asking unregistered users to log in when they create a poll or voted on a poll. I didn't understand why it wasn't working.

To fix it, what I had to do is this:
Change the DEFAULT permissions of the USERGROUP "Unregistered, not logged in" to be able to create and vote on polls in ALL forums. Then I had to go into each forum permission that I DIDN'T want them to vote in, and turn that feature off.

Do I not understand how the permissions work? Why would I have to change the whole usergroup, and subsequently all the forums, when I thought I'd just have to change one forum's permissions? Thank you.

Mike Sullivan
Tue 15th May '01, 6:04pm
Fixed for the next release -- poll.php was referencing $forumid in a couple places where it wasn't set, so it would get the default usergroup permissions instead.