mirror of https://github.com/BOINC/boinc.git
Drupal: Don't require approval of profiles for imported users who don't have profiles
(DBOINC-145)
This commit is contained in:
parent
57f88a1009
commit
3077f0e27d
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue