Closed (fixed)
Project:
Signup
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
25 Oct 2006 at 19:03 UTC
Updated:
15 Mar 2007 at 23:01 UTC
Jump to comment: Most recent file
Some of my users have events associated with a group and members outside of that group are able to see the titles of the events on the member profiles. Clicking the titles leads to an "access denied" error (as it should), but members outside of a group should never see any events unless they're public.
The "Users can view signups" checkbox has no effect on member profiles.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | signup_conflict_rewrite_sql.patch_1.txt | 2.37 KB | dww |
| #9 | signup_conflict_rewrite_sql.patch.txt | 2.44 KB | dww |
| #4 | signup_conflicts_og.patch | 648 bytes | Christefano-oldaccount |
| #2 | signup_og.patch | 673 bytes | Christefano-oldaccount |
Comments
Comment #1
Christefano-oldaccount commentedIt's only fair if I say it's critical that I try to fix it! I'll post a patch as soon as I make one.
This code adds organic groups interoperatibility:
Add it to the
signup_user() functionat line 207.Comment #2
Christefano-oldaccount commentedHere's a patch. I've applied it against signup.module,v 1.45.2.26 2006/08/18 08:21:52 and it seems to work.
Comment #3
moshe weitzman commentedmore likely a db_rewrite_sql() is missing
Comment #4
Christefano-oldaccount commentedAttached is a similar patch as above but for the signup_conflicts.module. I can only say it again: members outside of a group should never see any signups unless the event is marked public.
Please review.
Comment #5
dwwsorry for the delay, i thought you were going to investigate moshe's suggestion and confirm or deny his claim. after looking briefly at the problem, that's exactly what's going on. it's not just missing a few calls to
db_rewrite_sql(), there are NO such calls anywhere in the module. this is bad.if you can, please read up on this function, and try to go through the signup code looking for any calls
to db_query()that really need adb_rewrite_sql(), too. a single patch for all of signup and signup/contrib/* that added the missing rewrites would be MOST appreciated. ;)thanks!
-derek
Comment #6
dwwafter careful review, it was only a single db_rewrite_sql() that was missing, and only for this one place (the signup listing on the profile page). i had to re-order the query a little to get db_rewrite_sql() to work happily with it, but now it's all fine. committed to HEAD, DRUPAL-5, DRUPAL-4-7, and DRUPAL-4-6.
Comment #7
Christefano-oldaccount commentedThanks for working on this. I banged my head against it for a while and was never able to get it to work right. After seeing that you spent a few hours on it, I'm very grateful.
Comment #8
dwwno problem, sorry for the insane delay... signup doesn't get enough lovin' from me since i'm too damn busy.
but, hehe, whoops, i forgot about the silly signup_conflicts.module. :( should be easy, however... stay tuned.
Comment #9
dwwattached patch applies on all branches (cleanly for DRUPAL-4-6, with offsets on DRUPAL-4-7, DRUPAL-5, and HEAD). please test/review, if you can. thanks!
-derek
Comment #10
dwwfinally had a chance to setup signup_conflict.module and test this. a SQL syntax error snuck in with my previous patch. this one should be RTBC. any final reviews/tests?
Comment #11
dwwafter futher testing, committed to HEAD, DRUPAL-5, DRUPAL-4-7, and DRUPAL-4-6.
Comment #12
dww(setting back for posterity). ;)
Comment #13
(not verified) commented