If you dont want users to save their fits if they are not in the whitelist I had to edit the osmium/src/new_loadout.php script.
Add these lines:
$a = \Osmium\State\get_state('a');
if(isset($a['notwhitelisted']) && $a['notwhitelisted']) {
$save->setAttribute('disabled', 'disabled');
$save->setAttribute('title', 'Your account needs to be in the whitelist before you can save loadouts.');
$save->addClass('force');
$save->setAttribute('value', $save->getAttribute('value').' (requires whitelisted account)');
}
AFTER:
if(!\Osmium\State\is_logged_in()) {
$save->setAttribute('disabled', 'disabled');
$save->setAttribute('title', 'You need to sign in before you can save loadouts.');
$save->addClass('force');
$save->setAttribute('value', $save->getAttribute('value').' (requires account)');
}
I dunno if there is a better workaround for this but so far its working for me.
If you dont want users to save their fits if they are not in the whitelist I had to edit the osmium/src/new_loadout.php script.
Add these lines:
AFTER:
I dunno if there is a better workaround for this but so far its working for me.