Patch for access to role_subscription/my_subscriptions pages
| Project: | Role Subscription e-Commerce Paid Subscription Management |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Hi,
I'm currently in the midst of implementing my own multi-module registration/subscription system, so needless to say I was interested when I read you ideas. I've installed the modules and it's a very interesting looking project at this point, I'm sure you've put a lot of work in to it.
Here is a patch for the role_subscription_user.module which currently stops users who aren't user 1 or and are assigned to roles other than 'authenticated user' role from getting access denied on their registration/subscription pages. (I've come across this issue before with Drupal 5 menu system not liking multiple access && || statements within the menu item itself - solution seems to be to make the statements outside the menu item, assign them to a variable, and then call the variable within the menu item)
This won't be able to be a full substitute for everything I'm working on, but as I am getting ready to implement authorize.net subscriptions for our registration/subscription system I'm definitely going to be using the parts I can for that bit at least. Will contribute back things as I can - cheers!
~~~
HigherVisibility
| Attachment | Size |
|---|---|
| role_subscription_user.patch | 2.68 KB |

#1
Interesting, I wasn't aware of this issue thanks. Are you going to open source your own module?
#2
I wonder if I even need the authenticated user thing in there at all, seems like all I need to check is
user_access('access role_subscription')The way my code works it won't let you add subscriptions without a user account anyways.