You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* As the API key user could use it also for clubstations we need to do an additional check here. Only if clubstations are enabled
@@ -260,12 +262,11 @@ function qso($dryrun = false) {
260
262
* If the user is not the creator of the API key, it's likely a clubstation. In this case the callsign of the clubstation
261
263
* can not be the same as the callsign of the user (operator call provided by the user). If this is the case, we need to use the callsign of the creator of the API key
262
264
*/
263
-
$real_operator = null;
265
+
$real_operator = null;// real_operator is only filled if its a clubstation and the used key is created by an OP. otherwise its null
// TODO: It would be possible to check here if operator is allowed to use the clubstation, but this can be added later if needed
269
270
} else {
270
271
$real_operator = null;
271
272
}
@@ -327,6 +328,11 @@ function qso($dryrun = false) {
327
328
$record['operator'] = $real_operator;
328
329
}
329
330
331
+
// in case the caller is an OP for a clubstation (real_operator is filled - see above) and the OP only has level 3 or 6 - take the OP from real_operator!
0 commit comments