We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5638199 commit 0c957dfCopy full SHA for 0c957df
php-config/Emergence/Mueller/Investigator.config.d/laddr.php
@@ -51,6 +51,25 @@
51
},
52
];
53
54
+Investigator::$tests['has-checkin'] = [
55
+ 'points' => 1000,
56
+ 'function' => function (IUser $User) {
57
+ static $checkinMemberIds;
58
+
59
+ if ($checkinMemberIds === null) {
60
+ $checkinMemberIds = array_map(
61
+ 'intval',
62
+ DB::allValues(
63
+ 'MemberID',
64
+ 'SELECT DISTINCT MemberID FROM `member_checkins`'
65
+ )
66
+ );
67
+ }
68
69
+ return in_array(strtolower($User->ID), $checkinMemberIds);
70
+ },
71
+];
72
73
if (SlackAPI::isAvailable()) {
74
Investigator::$tests['has-slack-account'] = [
75
'points' => 1000,
0 commit comments