Closed (fixed)
Project:
Drupal core
Version:
4.6.3
Component:
user system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Nov 2005 at 14:39 UTC
Updated:
19 Aug 2006 at 20:46 UTC
Jump to comment: Most recent file
Comments
Comment #1
falcon9xr commentedI wrote a patch (attached) that will solve this. It modifies the "includes/menu.inc" file. It isn't the cleanest way to do it, but it works, is simple, and doesn't seem to break anything. Be sure to disable and enable caching after applying it, as I encountered trouble during testing with the caching. Let me know if I missed something huge that it causes to break.
I did try putting the
if (!user->uid) {
drupal_goto();
}
in the user_logout() function, but the function doesn't seem to be called by an anonymous user at all.
Comment #2
falcon9xr commentedOops, dont' use the patch. It redirects infinitely. I'll rewrite and post up the new patch. Sorry!
Comment #3
falcon9xr commentedOk here is another patch file. It edits the "modules/user.module" file. If the previous patch was applied, please remove it. This patch file has one downside, anonymous users will be able to see the "logout" option on the menu. I haven't quite figured out how to remove that yet.
Comment #4
moshe weitzman commentedComment #5
Wesley Tanaka commentedGetting rid of it in the menu should be as simple as setting the 'type' of the callback to 'MENU_CALLBACK' if !$uid
Comment #6
magico commented