user 1 unable to ban user

ronn abueg - January 10, 2009 - 00:33
Project:abuse
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:BTMash
Status:closed
Description

In the function abuse_admin_ban_user($uid), the following like doesn't allow user 1 to ban an account:

line 447: if ($user->uid > 1 && $user->uid !== $account->uid) {

it should be

line 447: if ($account->uid > 1 && $user->uid !== $account->uid) {

#1

BTMash - January 12, 2009 - 18:36
Assigned to:Anonymous» BTMash
Status:active» needs review

I'll be taking a look through the codebase to patch this up. Thanks!

#2

BTMash - October 23, 2009 - 17:32

Sorry for the late review - I've added your patch in - it will be available in the dev branch and should be available in the official release soon.

#3

BTMash - October 23, 2009 - 17:32
Status:needs review» closed
 
 

Drupal is a registered trademark of Dries Buytaert.