0

Does anyone happen to know of a way to allow member groups other than Super Admins to send key invites via User from Solspace?

Their docs state that it's SA only, but I had four separate user groups that need to be able to access this function via the front end while not having CP access, thus they can't be Super Admins.

Anyone else run into this and/or discover a workaround?

1 Answer 1

1

For security reasons, we have limited the Key Invite feature to Super Admin's only. If you wanted to adjust this on your own, you would have to modify the code in mod.user.php around line 9310:

/** ----------------------------------------
/** Is the current user logged in?
//  are they an admin? must be admin
/** ----------------------------------------*/

 if ( ee()->session->userdata('member_id') == 0 OR ee()->session->userdata('group_id') != 1)
 {
 return $this->_output_error('general', array(lang('not_authorized')));
 }
1
  • Mucho thanks! Also got the answer from your support team, but hadn't had time to update this. You all rock on so many levels. Jun 17, 2015 at 20:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.