AIRAVATA-2500 Create UserResourceProfile before any auto setup
[airavata-php-gateway.git] / 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));