Closed (fixed)
Project:
Outline Designer
Version:
5.x-1.3-3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Jun 2008 at 05:23 UTC
Updated:
11 Jul 2008 at 16:13 UTC
I was playing with the module, and I noticed that it when I brought up the outline designer, I would sometimes change users! I would refresh the page, and it would say I was admin, or whoever created the page I was editing. I poked through the code and found a few fixes for it.
outline_designer.module
line 540 is
}elseif($user->uid = $value['uid'] && user_access('edit own ' . $value['type'] . ' ' . $term)){
but should be
}elseif($user->uid == $value['uid'] && user_access('edit own ' . $value['type'] . ' ' . $term)){
Notice the double equals sign instead of the single one.
Exact same line of code with same error on line 187 of ajax.php
Updated files attached.
| Comment | File | Size | Author |
|---|---|---|---|
| outline_designer.module.txt | 26.03 KB | brettev | |
| ajax.php_.txt | 11.11 KB | brettev |
Comments
Comment #1
btopro commentedJust got this in yesterday, i've been having issues connecting to the internet with the computer that I commit everything from but as soon as I get that resolved I'll be patching that in. Thanks for the catch
Comment #2
btopro commentedComment #3
btopro commentedComment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.