Security Bug Fix: Unified Sidebar Image Display

Creating and modifying plugins.
Post Reply
mojiro
Regular
Posts: 6
Joined: Wed Jan 17, 2007 11:32 pm

Security Bug Fix: Unified Sidebar Image Display

Post by mojiro »

Coppermine Gallery has support for "User Groups". This means that you
may not be able to see some photos if they are blocked for your group.

The bug with his plugin, is that does not check for Group Permisions and
shows any Picture at SideBar...

You may want to hide some pictures from public...

for the fix of this use (by replacing old) the following php file...

http://mojiro.awmn.net/_old/coppermine_sidebar.php.txt

Where you find "/* MOJIRO:EDIT [START] */" or "/* MOJIRO:EDIT [END] */"
is where I did modifications from the Original script.

After the instalation, go to Plugin Options and you will find
"PLUGIN_CPGS_GROUP_NAME"

this is where you put the group name...
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Security Bug Fix: Unified Sidebar Image Display

Post by garvinhicking »

Hi!

Thanks a lot for this patch! Just committed to CVS:

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply