I'm interested in learning more about the permission "create openscholar site on behalf of others" and the best process for creating a site for an existing user.

Here's where I'm at so far investigating this:

  1. I enabled this permission, and then went to site/register to create a new site
  2. Entered the name of an existing user, and got the message "username "instructor" is taken"
  3. Deleted the name of the existing user, and got the message "Notice: This user already exists and has 0 sites. Click here to create a site for them."
  4. Clicked on the "click here" - this takes you to site/register?register_for=0
  5. Thought the URL might be a clue, so went to site/register?register_for=instructor - instructor being the name of the existing user
  6. Came here to look around and see if anyone else is working on this :-)
  7. Any ideas? Am I approaching this correctly?

    Thanks for any advice!!

Comments

rbrandon’s picture

Category: support » bug
Status: Active » Fixed

dmcw,

There was a bug that prevented creating sites on behalf of users who did not already have a site, you were right on, if you have that permission you should have been able to create a site for them. The bug has been fixed in the latest release of openscholar.

http://openscholar.harvard.edu/scholar_software/download-openscholar/2-0...

diff sites/all/modules/openscholar_sitewide/scholarregister/scholarregister.pages.inc
30c30
< if( (!$b_create_sites || ($b_create_sites && $_REQUEST['register_for']) || ($b_create_own_sites && !$b_create_sites)) && ($b_create_sites || $existing_sites) && count($existing_sites) < variable_get('openscholar_vsites_per_user', 1)){
---
> if( (!$b_create_sites || ($b_create_sites && $_REQUEST['register_for']) || ($b_create_own_sites && !$b_create_sites)) && $existing_sites && count($existing_sites) < variable_get('openscholar_vsites_per_user', 1)){

Thanks,
Richard

Anonymous’s picture

Super! Thanks rbrandon! We'll check it out.

Automatically closed -- issue fixed for 2 weeks with no activity.