i enabled the access control to allow anonymous to flag content. For some reason it will not place the link on the pages. do i need to change code?
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | anonymous_flag.diff | 2.74 KB | greggles |
i enabled the access control to allow anonymous to flag content. For some reason it will not place the link on the pages. do i need to change code?
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | anonymous_flag.diff | 2.74 KB | greggles |
Comments
Comment #1
Oreps commentedhow would this be done?
Comment #2
gregglesI've attached a patch which does this because I need it for a site.
There were two problems that I found:
1) there was a check for if ($user->uid) { around the generation of the links which evaulates to "false" for uid 0 (anonymous user) which I removed because the user_access checks for the permissions for uid 0 just fine
2) in the sending of the email an anonymous user doesn't have a name or a mail, so I defaulted the name/emails to the settings values for anonymous user and the default site mail respectively
There may be more implications that need to be reviewed but these seemed like the major hurdles to me in the use of this module by an anonymous user.
Comment #3
kbahey commentedI added code to 4.7 to allow anonymous to flag content.
Need to be ported to 5.x.
Comment #4
kbahey commentedComment #5
(not verified) commented