Closed (fixed)
Project:
Subuser
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
9 Jul 2011 at 02:44 UTC
Updated:
3 Feb 2017 at 11:16 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
larowlansubscribe
Comment #2
Jb33 commentedsubscribe
Comment #3
roderikTested, it works.
(Note the default view currently doesn't work; also not after applying #1204692: Change default views to reflect upstream changes to VBO + relation. User names are not made into links and edit links are not shown. But I don't care; I just created a different view with fields linked to user/[uid] and user/[uid]/edit. With that, if you view another user's subusers... the view shows links but they give "permission denied". That's fine for my case.)
I added the last code block in the attached patch. This usage warrants caching inside subuser_load_all().
Comment #4
roderikMeh. My addition clashes with #1256938: subuser_load_all not returning the proper parent user ids and not returning userids if we have defined another relation.
I'm setting RTBC FOR THE ORIGINAL PATCH. Caching needs to be re-added to #1256938. (I'm not doing that for the moment.)
Comment #5
roderikIgnore #3/4. Caching has been deleted again.
This patch adds support for Profile2 module (the default solution for profiles, even though it's in contrib).
Comment #6
graper commentedthere is an error in your patch, what becomes line 66 has global $suer, but it should be $user
Comment #7
7wonders commentedHere is the view/edit/delete extra permissions against the latest dev.
Comment #8
sathishdevan commented@ 7wonders
Is this patch added in the current snapshot of subuser module available in the below repo.
http://drupalcode.org/project/subuser.git
Regards,
Sathishkumar V
Comment #9
sathishdevan commented@ 7wonders
I have applied the above patch and thiis allows the parent user to edit/view/delete their subusers, but the view(subuser view) shown on the subuser tab of parent doesn't have the edit/view/delete links.
Comment #10
sathishdevan commented@7wonders
Sorry, I have missed the patch from the below link.
http://drupal.org/node/1204692
Now, I have applied the patch and the subuser view works as expected. Thanks for Your patches. It made my life much easier.
Comment #11
sokrplare commentedConfirming the patch in #7 is working beautifully for me (also using #1204692-8: Change default views to reflect upstream changes to VBO + relation).
Comment #12
sokrplare commentedHmmm...correction, seems like View and Edit are working, but Delete may have some issues:
Comment #13
iRex commentedI am getting a "Fatal error: Call to undefined method stdClass::init_display() in ***\views\views.module on line 609" when I try to enable the snapshot mentioned in #8 above and applying the patch here http://drupal.org/node/1204692.
Clearly I'm doing something wrong. Can somebody please help?
Comment #14
iRex commentedThe problem seem to lie with the subuser switch submodule. I disabled it in the database and cleared the cache and I was able to escape the WSOD. Does anyone have an idea why this happening?
Comment #15
sansui commentedWith the patch I receive this - Notice: Trying to get property of non-object in subuser_load_all() (line 280 of /home/zzz/public_html/sites/all/modules/subuser/subuser.module) (on the user account page, after that user account has created a subuser)
Comment #16
7wonders commentedI just posted a working version of the module on this thread - https://drupal.org/node/1508334
Comment #17
lauriiiCommited and pushed, thanks guys!
Comment #18
lauriiiComment #21
bleg commentedIt would be good to have the option to delete without sending a confirmation email to the user. Either that or have the ability to block the user.
Comment #22
dddbbb commented@bleg - Not a bad idea but this issue's closed. Open a new issue?
Comment #23
adamtong commentedany update about #21?