Posted by yangru on June 13, 2008 at 4:18am
| Project: | abuse |
| Version: | 6.x-1.1-alpha1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
I think function abuse_ban should be changed like this to resolve this problem:
function abuse_ban($uid) {
global $user;
if ($uid == 1 || $user->uid == $uid) {//previously if ($user->uid == 1 || $user->uid == $uid)
drupal_set_message(t('You cannot ban '. ($uid == 1 ? 'the administrator' : 'yourself') .'!'));//previously drupal_set_message(t('You cannot ban '. ($user->uid == 1 ? 'the administrator' : 'yourself') .'!'));
drupal_goto('admin/content/abuse');
}
$account = user_load(array('uid' => $uid));
return drupal_get_form('abuse_ban_form', $account);
}
Comments
#1
Here are patches for all branches.
#2
should have been fixed.
Thanks!
#3
Automatically closed -- issue fixed for 2 weeks with no activity.