Summary: Allow sub-users to select an "additional parent".

* Additional parent role setting.
* Additional tab on user/3/* that allows child to add a single additional parent.
* List of additional parents provided as combo filled with all users of in "additional parent role".

This is not going to be officially added, but perhaps down the road a generalized feature to allow sub-users to modifiy their parents.

CommentFileSizeAuthor
#1 751184-additional-parent.patch5.27 KBboombatower

Comments

boombatower’s picture

Assigned: Unassigned » boombatower
Status: Active » Needs review
StatusFileSize
new5.27 KB
osman’s picture

Hi Jimmy,

I think it could be a nice addition or a sub module for subuser module. I applied your patch on my testing server to see how it works.

Here's my two cents if you will;

  • Considering any subuser account would most likely be a lesser level user account, it would be better to control visibility of "Set parent" tab with permissions.
  • "Set parent" tab is visible to any role. It should be limited to subuser role(s)

During my tests, I noticed some weirdness:

  1. I created 3 users with parent role: Parent1, Parent2, Parent3
  2. Parent1 adds a new subuser: Subuser1
  3. Subuser1 logs in, and adds Parent2 as Additional parent

    Drupal msg: The changes have been saved.

    Additional parent dropdown still displays Parent1
  4. Subuser1 thinks it is a glitch, repeats the same process again and again to add Parent2 as an additional parent, same drupal msg, same user selected on dropdown...
  5. Parent2 logs in. She sees, Subuser1 is listed on her account page several times.

I think it is clear...

I am already using subuser for a project I've been working on. And I believe this feature would be something I will need eventually.

I'll see if I can make any of these changes. My goal is;
Displaying "Set parent" tab to subuser account only
Add a permission check for "set parent" tab access
Improve messaging
Improve "Set parent" UI, multiple select maybe...
List only available Parent role users

I'll post my findings and any patch I may code on this page.

Thanks again for sharing your code/patch Jimmy.

Cheers,

Osman