forum.coppermine-gallery.net

Dev Board => cpg1.4 Testing/Bugs => cpg1.4 Testing/Bugs: FIXED/CLOSED => Topic started by: Casper on January 31, 2005, 03:30:24 pm

Title: Unable to delete users
Post by: Casper on January 31, 2005, 03:30:24 pm
Unable to delete user.

I found during testing that when trying to delete users, I was getting this error, which I beleive is related to the bridge manager;

Quote
You don't have permission to perform this operation.

File: /home/photogra/public_html/gallery/delete.php - Line: 454

Line 454;
Code: [Select]
if (!(GALLERY_ADMIN_MODE) || ($user_id == USER_ID) || defined('UDB_INTEGRATION')) cpg_die(ERROR, $lang_errors['perm_denied'], __FILE__, __LINE__);
On testing further, I found removing the UDB section, it works;

Code: [Select]
if (!(GALLERY_ADMIN_MODE) || ($user_id == USER_ID)) cpg_die(ERROR, $lang_errors['perm_denied'], __FILE__, __LINE__);
My install is standalone, although I have tried previously to bridge, unsucessfully.  The enable bridge setting is currently '0'.
Title: Re: Unable to delete users
Post by: Tranz on January 31, 2005, 08:32:02 pm
Confirmed on a stand-alone installation that had never been bridged.
Title: Re: Unable to delete users
Post by: omniscientdeveloper on February 03, 2005, 08:45:23 am
Fixed. It should've been UDB_INTEGRATION != 'coppermine'.

...Sorry I didn't get it sooner. I was expecting bug responses in the dev thread.  :P
Title: Re: Unable to delete users
Post by: Casper on February 03, 2005, 10:10:52 am
OK, thanks for that.

...Sorry I didn't get it sooner. I was expecting bug responses in the dev thread. :P

Wasn't sure where to post it.  The non dev testers would have had to post it here, and if it had been in the dev only thread, they would have been unaware this bug was known and being dealt with.

The dev thread is the correct place to discuss what we are going to, or want to do, but once the code is committed to the dev version for testers to use, then I thought this was the place.

Sorry if I have this wrong.
Title: Re: Unable to delete users
Post by: omniscientdeveloper on February 03, 2005, 12:38:45 pm
No. You were right. I was just expecting it to be in the dev thread.