Again... Love the RSVP.

Quick issue and I'm sure it's something simple that I missed.

I have given all RSVP permissions to a specific role to administer RSVPs (rsvp by date). They can create an RSVP and even invitees individually. But when they click on a particular role in the "You may invite members by system roles" dialog they get "ACCESS DENIED you are not authorized to access this page". The url is - http://www.healthyscratch.com/?q=rsvp/5/attendees/role/3.

Thanks...

Comments

ulf1’s picture

Am I right when I assume that all members of the role have been added eventhough you get the error? It is just that you get the Access Denied page at the end?

This is probably contributed by the automatic session management that the rsvp module keeps around.

If you are PHP savy, please do the following:

Open file roles/rsvp_roles.module and look for function rsvp_roles_add_form.

In the last line of teh function, please replace

drupal_goto(rsvp_function_session_parent(NULL, false));

with the following two lines:

$parent = rsvp_function_session_parent(NULL, false);
drupal_set_message($parent);

store the file and then try to add guests by role. When you clicked on one of the roles to add guests by role, the message block then should show you in the last line what the link looks like where the module likes to jump to and report it back here.

Thanks,
Ulf

jouflas’s picture

They were added using the admin account. The other accounts didn't add them. I'll take a look at the PHP changes and let you know if it works. Thanks

Delayar’s picture

Aloha,

same error on my system. The users are not added to the event.

I replaced the line as suggested but I do not get any output. I played around a bit and even when I write the lines in front of the if-clause I do not get any output.

Perhaps it helps you that the original administrator can invite roles. But other users that have the right through the user management are not able to do so.

thanks,

Delayar

ulf1’s picture

This is then definitely a permission/configuration issue.

Can you send me a private message with an admin account/password to your site so that I can check/test some things?
I also need one login (user/password) for one of the users that can not add guests by role.

Thanks,
Ulf

jouflas’s picture

Status: Active » Closed (fixed)

It is working now. Configuration issue. Thanks

ulf1’s picture

Hi,

could you share what the exact configuration issue was so that others understand where to look that run not into the same problem?

Thanks,
Ulf

jouflas’s picture

Ulf,

Will do... I have a busy weekend so I'll get you something Mon - Tues.

Thanks,
Steve

jouflas’s picture

Ulf,

I've been trying to recreate the error without success. The scenario was that only members in the role of "captain" and of course "admin" have permission to invite members to a game (created content type). I'm using the date connector. Looking back on it the host was a member of the role captain when the error occurred, so it wasn't a permissions mistake. That user has since been able to invite by role without problem.

Steve

ulf1’s picture

Interesting.
I still believe it is a problem with the parent url that is stored in the session, and if that url is empty under some circumstances.

I added now code to prevent that from happening and delivered the changes into the last dev release. Please give it a try and let me know if you see any difference (you should not see anything failing apparently).

~
Ulf

jouflas’s picture

Will do... Thanks

MafiaMoe’s picture

This might help:

I ran into the same issue. However, when I manually invited one user (test account), logged out of the inviter account and into the invitee account, had that invitee account accept the invitation, then switched back to the inviter account, it then started allowing the inviter to invite new users using the roles selection. I am not sure at exactly what point the issue went away, but something not directly correlated to any permissions setting definately changed in the process, the user has always had full permissions (quasi-admin account).

This is a fairly complex site, so this could also be a module conflict: http://www.asmeucm.org

ulf1’s picture

@MafiaMoe,

the only thing that probably helps is debugging. If you have a test site with installed php debugger I can take a look. Please contact me directly and we can start a remote vnc session.

Thanks,
Ulf