Quote:
Originally Posted by rmorley
Ok Andrew, so if I want to allow anyone to view and add links, but I want to moderate all the added links, I should set moderate_link parameter to 1, and set default_forumid to "none". In the permissions section the can_add_link parameter has every usergroup checked.
I am not sure if it matters, but I set "Can_Set_permissions" to only the administrator.
Is there anything I am missing? I cant explain it, but unregistered users are seeing all links, even those awaiting moderation. However, a registered user does not see the items awaiting moderation.
Thanks for your help, and sorry about being a pest.
|
I understand the problem
When moderation is switched on, new links are only visible to the user who submitted the entry and to moderators, until the link has been moderated.
However, if you allow an unregistered user to add new links, this creates the difficulty you observe. Logic:
- link was created by userid 0 (the userid of an unregistered user)
- any other unregistered user also has userid 0, therefore the hack thinks that they are the same user who added the link, therefore displays the unmoderated link.
- any registered user who is not a moderator has a different userid, therefore cannot see the unmoderated link
Possible solutions:
- I change the code so that links added by unregistered users are only visible to moderators (i.e. not even to the person who added the link) until the link has been accepted by a moderator
- You only allow registered users to add links
- maybe there's another possible solution?
What do you think is best?