Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jan 2004
Posts: 56
P
journeyman
journeyman
P Offline
Joined: Jan 2004
Posts: 56
When I change a users group it appears that the change does not go into effect until they logout and then back in even when the change happened while they were not online.

Last edited by Rick; 10/10/2006 1:52 PM.
Joined: Jan 2004
Posts: 56
P
journeyman
journeyman
P Offline
Joined: Jan 2004
Posts: 56
I can also Add, Edit, Delete Posts from forums (groups) that I am no longer a member of...

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Ok, we need to clear out the old cached permissions when a user is updated. Here is the fix. Line 462 of admin/changeuser.php has this:

Code
// ---------------
// Log this action

Right before that, add this:

Code
// Delete the cached permissions so they are rebuilt
$query = "
        delete from {$config['TABLE_PREFIX']}CACHED_PERMISSIONS
        where USER_ID = ?
";
$dbh->do_placeholder_query($query,array($uid),__LINE__,__FILE__);


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Are any of these legitmate?
by Baldeagle - 09/06/2026 1:37 PM
8.0.1 Patch Changelog Discussion
by isaac - 11/26/2025 1:34 PM
Upgraded to ver8 - now can't login
by phoenix011235 - 10/24/2024 8:50 AM
Who's Online Now
0 members (), 563 guests, and 80 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)