Unable to delete users Unable to delete users
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Unable to delete users

Started by Casper, January 31, 2005, 03:30:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Casper

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;

QuoteYou don't have permission to perform this operation.

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

Line 454;
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;

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'.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Tranz

Confirmed on a stand-alone installation that had never been bridged.

omniscientdeveloper

#2
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

Casper

OK, thanks for that.

Quote from: omniscientdeveloper on February 03, 2005, 08:45:23 AM
...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.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

omniscientdeveloper

No. You were right. I was just expecting it to be in the dev thread.