Closed (fixed)
Project:
Join role with password
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
10 Jul 2009 at 04:43 UTC
Updated:
30 Nov 2009 at 22:42 UTC
Jump to comment: Most recent file
Comments
Comment #1
snowbbdd commentedFixed my version, and hopefully this will be put in the next update.
Changed line 59 in join_role_with_password.module from
$items['user/%user/join_role'] = array(
to
$items['user/%user/edit/join_role'] = array(
and ran update.php
Comment #2
francoud commentedAs far as I can see, the module allows only the current user to join or leave a role.
If user nr. 2 goes to: /user/3/join_roles - he still affect only itself, no user 3's roles.
I agree is not elegant that user 2 can go to "/user/3/join_roles ". The correct url should be just
"/user/join_role", but it's just a matter of link visibility... i'll investigate furthermore.
Comment #3
Leeteq commentedIf the actual edits only affect the current user anyway, regardless of the URL, then setting this to normal, not critical. And if so, then the fix should be relatively easy?
Comment #4
francoud commentedThanks for setting this bug from critical to normal. I didnt notice it.
I can confirm: /user/%whatever/join_role always affects only the "current" user.
Actually, I just want that the "Join or leave a role" item appear together with "view" and "edit" tabs for the "my account" menu; it should appear for the current user only, but if I use $items['user/%user/join_role'] in the hook_menu call, it appears for any user; putting it inside the "edit"
also will lead to misunderstanding (user/edit/%whatever/join_role will, again, only affect the current user).
Still searching for an elegant solution. Any suggestion will be appreciated ;)
Comment #5
francoud commentedI tried solving the problem with this patch. "trick" was: moving the "join or leave a role" link from the original place (now u find under the "profile" link), and forcing the "right" url. I tried and seems working, but maybe somebody could test it further. I post the "patch" that should lead to module version 1.2-1. Still not committing it - needs more testing...
note: patch applies to version 6 only!!
Comment #6
francoud commentedI didnt receive any comment, and my tests seem good. So i think u can use this patch if u need.
Comment #7
Leeteq commentedWill the patch be committed?