I have assigned the "send invitation voucher" permission to the "authenticated user" role, but authenticated users receive an Access Denied error when trying to access the send invitation form. I have looked in the database and verified that the permission has been assigned to the role. User/1 is the only user that is able to access the form. Do you have any idea how to fix this? Is there any code that I can add to the module?

I have customized the module a little bit so I attached a copy. As far as I know, I didn't do anything that should cause this to happen.

Thank you for this awesome module!

CommentFileSizeAuthor
#2 invvoucher.module16.7 KBskatepark123
invvoucher.module16.71 KBskatepark123
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

skatepark123’s picture

I have installed your original module on a different installation and the same problem occurs.

skatepark123’s picture

FileSize
16.7 KB

Ok, I looked around in your code long enough to figure out how to change the user_access, which made the module work on one installation, but once I copied the module to my main site, It still gave me an Access Denied. I am completely out of ideas.

I've attached the module with my latest changes.

dear_anton’s picture

Hi there!

Have no problem with that code with different users! You may notice me URL of your site and create profile for me to check that form. There was no such problem at my host.