Closed (fixed)
Project:
Outline Designer
Version:
5.x-1.4
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
26 Jun 2008 at 12:03 UTC
Updated:
15 Jul 2008 at 19:33 UTC
Sort of.
1. I sign in as a non-root user with roles that give me full access to the Outline Designer
2. I access the designer and load an outline (nothing happens if I just access the designer without picking an outline).
3. The next page load on the site is always as "Anonymous."
According to Watchdog logs, the authenticated session isn't actually officially closed, so I suspect that the Outline Designer code merely changes the current user ID to 0.
This happens pretty early on in the outline "editing" because Watchdog always logs Access Denied errors for outline_designer/ajax/get_icons
I haven't yet tracked down where or why this is happening.
Comments
Comment #1
kopo88 commentedajax.php, line 187:
}elseif($user->uid = $value['uid'] && user_access('edit own ' . $value['type'] . ' ' . $term)){outline_designer.module, line 540:
}elseif($user->uid = $value['uid'] && user_access('edit own ' . $value['type'] . ' ' . $term)){These should be:
$user->uid
==$value['uid']Even the great occasionally make typos, I'm afraid. :-)
Also, there seems to be a lot refactoring that can be done in this module to avoid these repetitions.
Comment #2
btopro commentedoh dang! lol. I'll have to patch that right up and throw out a new version. Nice catch.
As for the Ajax.php file, it's old code that keeps getting added into new builds of the project. The beta version ran off of ajax.php and then I got help pushed it to a function in the .module
Nice find!
Comment #3
btopro commentedComment #4
kopo88 commentedajax.php is missing from the latest release. Users who untar the package and overwrite will not notice that ajax.php is not overwritten. The current version of ajax.php in CVS does not yet contain the fix.
Comment #5
btopro commentedajax.php is no longer used. It was historical (used in beta releases) but I took it out of 1.4 because people keep reporting on it and it's not used code anymore. The code in ajax.php is now included at the end of outline_designer.module as a menu location to make it easier to install. Upgrading fixes the issue and you can delete the old ajax.php file if you want to as it just sits there now.
Comment #6
btopro commented