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!
Comment | File | Size | Author |
---|---|---|---|
#2 | invvoucher.module | 16.7 KB | skatepark123 |
invvoucher.module | 16.71 KB | skatepark123 |
Comments
Comment #1
skatepark123 CreditAttribution: skatepark123 commentedI have installed your original module on a different installation and the same problem occurs.
Comment #2
skatepark123 CreditAttribution: skatepark123 commentedOk, 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.
Comment #3
dear_anton CreditAttribution: dear_anton commentedHi 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.