AIRAVATA-2500 Create UserResourceProfile before any auto setup AIRAVATA-2500 84/head
authorMarcus Christie <machrist@iu.edu>
Wed, 27 Sep 2017 16:26:49 +0000 (12:26 -0400)
committerMarcus Christie <machrist@iu.edu>
Wed, 27 Sep 2017 16:26:49 +0000 (12:26 -0400)
app/controllers/AccountController.php

index cd2643e8a0ebda4ecbe1aa1135fed6dbec68406a..26c7c15f1cf311d19604c2cce7a8f337672331cb 100644 (file)
@@ -294,6 +294,8 @@ class AccountController extends BaseController
             umask($old_umask);
         }
 
+        // Must create the UserResourceProfile before we can add auto provisioned accounts to it
+        $user_resource_profile = URPUtilities::get_or_create_user_resource_profile();
         $auto_provisioned_accounts = URPUtilities::setup_auto_provisioned_accounts();
         // Log::debug("auto_provisioned_accounts", array($auto_provisioned_accounts));