Moderator rights stay after ratings are recomputed
Review Request #92 - Created Sept. 12, 2009 and submitted
Information | |
---|---|
Savin Tiberiu | |
infoarena | |
Reviewers | |
hackers | |
Moderator rights were lost when ratings were recomputed. Not anymore :D
Before edit: Added devilkind to moderatori infoarena in smf. Recomputed ratings. Moderatori infoarena -> no members After edit: Added devilkind to moderatori infoarena in smf. Recomputed ratings. Moderatori infoarena -> devilkind is still there
There are some inconsistent tabs in the change. Check that you don't mix tabs and spaces.
-
/trunk/common/db/smf.php (Diff revision 4) -
How come this is id_group and somewhere else it's ID_GROUP?
-
/trunk/common/db/smf.php (Diff revision 4) -
If it exists, add the old group to additional_groups
-
/trunk/common/db/smf.php (Diff revision 4) -
Should this be null, instead? They are different. Also, does smf still check for additional_groups if ID_GROUP is null?
-
/trunk/common/db/smf.php (Diff revision 4) -
evil whitespace
-
/trunk/common/db/smf.php (Diff revision 5) -
Maybe it's easier to do just two things: * keep line 98 ('ID_GROUP' => ('admin' == $ia_user['security_level'] ? 1 : null),) and * always strip 1 from additionalGroups. instead of doing all those checks.
-
/trunk/common/db/smf.php (Diff revision 5) -
Indent
-
/trunk/common/db/smf.php (Diff revision 5) -
Is "reglected" a typo?
-
/trunk/common/db/smf.php (Diff revision 5) -
indent
-
/trunk/common/db/smf.php (Diff revision 5) -
indent
-
/trunk/common/db/smf.php (Diff revision 5) -
whitespace
-
/trunk/common/db/smf.php (Diff revision 5) -
db_escape($username)