Closed (fixed)
Project:
CSS
Version:
6.x-1.0-rc1
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Apr 2010 at 19:37 UTC
Updated:
13 May 2010 at 16:40 UTC
Jump to comment: Most recent file
Hello,
Love this module, but quickly found a nasty bug.
If a user without css permission saves a page that has css previously enterd by another user, the css is lost.
I found the offending code and simply wrapped it with a user_access check.
I've attached a patch that fixes this issue. To be honest, this is my first patch submission, so let me know if it's done right.
Cheers.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | css-permission-check-on-update.patch | 672 bytes | Proct0t |
Comments
Comment #1
fax8 commentedPlease share your patch with us .. I'll be glad to review it.
Comment #2
Proct0t commentedwouldya look at that, thought I had attached it.... here it is!
Comment #3
fax8 commentedI had problems applying your patch but I just used the code and manually edited the css.module file. See http://drupal.org/cvs?commit=360960
Thanks!
Comment #4
fax8 commentedBackported to CSS for D5
Comment #5
Proct0t commentedGlad I can contribute! =D
If you don't mind, could you let me know what was wrong with the patch?
Comment #6
fax8 commentedDon't know exactly. It simply didn't applied..