Odonel / globalban-spanish

Automatically exported from code.google.com/p/globalban-spanish
0 stars 0 forks source link

I can`t add 'no powers' users in admin groups #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In old GlobalBan I can add 'no powers' users in admin groups, but with new
i can`t! Can you fix this pls?

Original issue reported on code.google.com by dagunc...@gmail.com on 15 Feb 2010 at 9:48

GoogleCodeExporter commented 9 years ago
\banned\include\database\class.ServerQueries.php

function getUnAddedServerAdmins

line 615

WHERE a.access_level <> '5' AND a.admin_id NOT IN (

must be just

WHERE a.admin_id NOT IN (

Original comment by apadro...@gmail.com on 16 Feb 2010 at 12:03

GoogleCodeExporter commented 9 years ago
In next version will be changed to don´t filter 'no powers' and to it by 
'active' status.

Because is true that can there be a player with 'no power' to ban and that have 
some
admin right is mani_admin_pluging like example.

Original comment by apadro...@gmail.com on 16 Feb 2010 at 12:13

GoogleCodeExporter commented 9 years ago
sorry, \banned\include\database\class.ServerQueries.php

function getUnAddedServerAdmins

line 624:      WHERE a.access_level <> '5' AND a.admin_id NOT IN (
must be too:   WHERE a.admin_id NOT IN (

Original comment by apadro...@gmail.com on 16 Feb 2010 at 12:15

GoogleCodeExporter commented 9 years ago
Sorry again, I am very tired. the file is 
\banned\include\database\class.UserQueries.php

lines 615 and 624 must be changed to

WHERE a.admin_id NOT IN (

without the "a.access_level <> '5' AND"

Original comment by apadro...@gmail.com on 16 Feb 2010 at 12:43

GoogleCodeExporter commented 9 years ago
nvm! ;)
Thank You! :)

Original comment by dagunc...@gmail.com on 16 Feb 2010 at 1:05

GoogleCodeExporter commented 9 years ago
For more info look:
http://code.google.com/p/globalban-spanish/source/diff?spec=svn93&r=93&format=si
de&path=/globalban-spanish/banned/include/database/class.UserQueries.php#sc_svn9
0_593

Original comment by apadro...@gmail.com on 16 Feb 2010 at 1:21