We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
is_banned()
1 parent 3a4d556 commit d88a926Copy full SHA for d88a926
1 file changed
application/libraries/Aauth.php
@@ -1071,6 +1071,10 @@ public function unban_user($user_id) {
1071
*/
1072
public function is_banned($user_id) {
1073
1074
+ if ( ! $this->user_exist_by_id($user_id)) {
1075
+ return TRUE;
1076
+ }
1077
+
1078
$query = $this->aauth_db->where('id', $user_id);
1079
$query = $this->aauth_db->where('banned', 1);
1080
0 commit comments