coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 permissions => Topic started by: warlock on August 28, 2006, 02:50:37 PM

Title: Permission denied when approve uploaded images
Post by: warlock on August 28, 2006, 02:50:37 PM
hi,

i could successfully change to admin mode and do everything, except approving uploaded images.
i don't exactly know since when this problem exist, but even a new installation of coppermine
with the OLD DATABASE doesn't solve the problem. so i think there is a permission-problem
in the database.

after some debugging in php, it seems that the "GALLERY_ADMIN_MODE" is not set on my admin
user, and i have no clue how and where i could do that.

so please help.

regards,
michael
Title: Re: Permission denied when approve uploaded images
Post by: Joachim Müller on August 28, 2006, 03:52:28 PM
Make sure (browsing coppermine's user table using phpMyAdmin or similar) that your admin user is member of group "1".
Not sure why you refer to admin mode: my suggestion would be never to leave it unless you know what it's menat to be used for. I strongly recommend upgrading anyway, since cpg1.3.x is deprecated and support for it will run out very soon.
Title: Re: Permission denied when approve uploaded images
Post by: warlock on August 28, 2006, 04:17:02 PM
sorry, i've 1.4.5 and droped it into the wront topic.
could u move it please?

user_group is already set to 1

thx
michael
Title: Re: Permission denied when approve uploaded images
Post by: Joachim Müller on August 28, 2006, 04:23:03 PM
Upgrade to the most recent version (currently cpg1.4.9) asap anyway - upgrading is mandatory to fix existing security flaws in your version.
Moving thread from "cpg1.3 Permissions & Access Rights (http://forum.coppermine-gallery.net/index.php?board=23.0)" to corresponding board for your version.
Title: Re: Permission denied when approve uploaded images
Post by: warlock on August 28, 2006, 04:57:46 PM
i updated to 1.4.9 and the problem still exists...
"You don't have permission to access this page." as administrator, group 1...

/EDIT:
after i select one image to approve and klick the submit button

Title: Re: Permission denied when approve uploaded images
Post by: Joachim Müller on August 28, 2006, 06:04:12 PM
I'd rather guess that your login doesn't stick. Post a link to your page for a start.
Title: Re: Permission denied when approve uploaded images
Post by: warlock on August 28, 2006, 06:44:52 PM
the page is www.seicentox.de ... i use the bridging-mode since few days, but the problem already exists berfore..
Title: Re: Permission denied when approve uploaded images
Post by: Nibbler on August 28, 2006, 07:00:06 PM
Sounds like mod_security or the php hardening patch. Are either of these installed on your server?
Title: Re: Permission denied when approve uploaded images
Post by: warlock on August 28, 2006, 07:18:17 PM
yes, u are right. i use the hardening-patch for php.. good hint.
do u know the setting of the patch which could be the problem?
Title: Re: Permission denied when approve uploaded images
Post by: Nibbler on August 28, 2006, 07:23:38 PM
You need to adjust the limits so that it permits more POST and/or REQUEST data. Several pages in Coppermine have a lot of post  fields and can exceed the limits if they are too conservative.
Title: Re: Permission denied when approve uploaded images
Post by: warlock on August 29, 2006, 10:53:37 AM
big thx. this solves the problem.