Closed (duplicate)
Project:
User Relationships
Version:
6.x-1.0-rc3
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Jun 2009 at 12:15 UTC
Updated:
26 Apr 2011 at 21:09 UTC
Anyone else have this issue? The only way my users can view other users' relationships is if they have the 'administer users' permission from the user module set. Setting the permissions from the user relationship module doesn't make any difference at all, the only thing that works is setting 'administer users'. Anyone else seeing this?
Comments
Comment #1
ltwinner commentedBeen digging through the code and here is what I know is happening
a) When I go to say a user/*/relationships page, the user_relationships_ui_check_access() function gets called twice.
The first time for /user/*/relationships
and the second time for /relationships
b) The first access check where the arguments are 'admin' and 'user' returns false;
c) The second access check where argument is 'view' return true;
Yet even though members get true on the second access check they are still denied access to the page????
Comment #2
alex.k commentedThis is a 6.x version of #256950: Viewing other people's friends not possible. (Possible fix included)
Comment #3
alex.k commentedIn light of what's been done in the 5.x issue I would classify this one as a feature, not a bug. It seems the module was never designed to have the relationships page of other users be visible to non-admins.
With Views it's possible to replicate the /relationships page and much more... if you have trouble creating a view pls post back and we'll see what can be done. Thanks.
Comment #4
ltwinner commentedim not sure what you mean alex, has this bug/feature been corrected/implemented in the latest development snapshot or are you saying it hasn't and to use views to do the /relationships page? If you are saying to use views then I supposed the code for the /relationships page in the module is redundant?
As regards, "the module was never designed to have the relationships page of other users be visible to non-admins." that seems a bit strange for a social networking module as viewing a users' relationships page is a common feature of bebo, facebook, etc.
Comment #5
alex.k commentedSorry, to clarify...
* It's not addressed in the 6.x branch
* I'd prefer that Views be used because flexibility of how the page looks is so much greater
* /relationships is not redundant, because in case of user's own relationships that is the place to manage their incoming requests, delete existing relationship and so on
Of course being able to see other users' friends is a basic ability, what I mean by "was never designed" is original author did not provide this functionality except though UR Blocks. So when I picked up the module it didn't have this ability, which I addressed by adding Views integration.
Comment #6
ltwinner commentedok thanks for clarifying mate.
Comment #7
dmuth commentedIf this functionality is to be deprecated (as per the comment in #5), would it possible to remove it from the module?
I just spent an hour pulling my hair out trying to get viewing another user's relationships until I stumbled across this page.
Thanks,
-- Doug
Comment #8
alex.k commentedDoug,
Viewing another user's relationships is definitely possible using Views. It just that the built-in page does not work for this purpose.
Comment #9
berdirThis is not going to happen for 6.x-1.x. Instead, see #1115998: Revamp core and UI permissions for the issue going *is* going to be commited to 7.x-1.x.