Drupal: Don't require approval of profiles for imported users who don't have profiles

(DBOINC-145)
This commit is contained in:
Tristan Olive 2015-11-10 21:55:46 -05:00
parent 57f88a1009
commit 3077f0e27d
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ function boincuser_create_drupal_profile($account, $boinc_user) {
node_save($profile_node); node_save($profile_node);
// Mark profile as approved if it has already been vetted somehow // Mark profile as approved if it has already been vetted somehow
if ($profile_approved) { if ($profile_approved OR !$boinc_user->has_profile) {
$profile_node->moderate = 0; $profile_node->moderate = 0;
node_save($profile_node); node_save($profile_node);
} }