UC Node Access


UC Node Access lets you attach Node access features to products in your Ubercart store. These features allow customers who purchase the product to receive view access to nodes on your site either indefinitely or for a limited time based on the feature's settings. UC Node Access does not handle access grants itself but rather depends on other modules to define handlers that integrate UC Node Access with the various node access modules developed for Drupal.

Currently integrated node access modules include:

  • ACL + Content Access - adds the customer's user account to the ACL defined by Content Access and adds expiration information beside the names in the Grant view access fieldset of the Access control tab for nodes governed by Content Access.

Refer to the project page on drupal.org for more information about the project, to post bug reports or patches, and to download releases packaged from Drupal CVS. An official release will be created for this module once its been tested for feature completeness.

There is sometimes a lag time between when code gets committed and when Drupal packages it up, so CVS users can download the latest code directly from the DRUPAL-5 branch.

Daniorama's picture
Joined: 09/15/2008
Juice: 46
Re: UC Node Access

Could it be ported to Drupal 6? Thank you!

pshafer's picture
Joined: 10/25/2008
Juice: 12
Module Help

So I installed the module, with ACL and Content Access, however when I try to add the Node Access feature on a product, I keep getting the following error message:

The node access handler is either not specified or missing. Node access features can be added to products but cannot be processed until this is resolved.

I don't know know how to resolve this. Can any one provide some help? Is there any documentation on how to use this module properly?

Ryan's picture
Joined: 08/07/2007
Juice: 15476
Re: Module Help

Can you check out the settings in your product feature settings to make sure you've got a node access handler selected?

pshafer's picture
Joined: 10/25/2008
Juice: 12
Fix It

Thanks for the input, I'm not sure what I was thinking. I didn't see any documentation on needing to set anything in the product feature settings. Thanks, I didn't even know that setting was there.


silentph03nix's picture
Joined: 03/06/2009
Juice: 18
Node access not granting access to node

I'm trying to grant access to some flash videos that I've created. I've got the videos working correctly. I've installed the ACL, Content-Access, and uc_node_access modules and enabled them. There are two nodes that have to have access granted. There is the video itself, then there is the page with the player in it. I've added both nodes to a product both with and without an expiration. I've tested purchasing the product and the permissions never get added to the node to allow my test user to access the node. I don't know what I'm missing. Is there a permission necessary that I've missed? I've used the role assignment feature and that works as expected. I'd really like to be able to grant a user specifically for a node rather than having to create a role for every video that I want to grant access to. I'm using Drupal 5.16 and Ubercart 1.7. Not sure what I'm doing wrong.

glennnz's picture
Joined: 01/20/2009
Juice: 458
Not working.


I can't get this to work at all. I have the default View options for the node I want to give access to so that nobody can view it. I am providing node access on purchase of the product, but access is not granted.

I've rebuilt permissions, no effect.

Any ideas?




Fixed. I'm a moron. Access was freely available to these nodes once the order had been updated to payment received.....


joules's picture
Joined: 04/24/2009
Juice: 16
Documentation Available?

Just wondering if there is any documentation available for this module. I've got a project that this would be a perfect match for, but I couldn't quite figure out how to use it. : (

PS: Thanks to everyone that helped build the Ubercart core and contribs! The company I work for has a customer that wants every application of Ubercart imaginable, from selling software to courses to site access to physical products and we're nearing the site's launch. We couldn't have done it without you guys!

artatac's picture
Joined: 06/11/2009
Juice: 79
sidebar Block view

Terrific 2.x module- thank you. Having tweaked the delay period to 0 (when will this be committed to the module?) I found that it was not obvious to the user how he then got to this premium content he had just bought - so
I created a sidebar Block view with

Node: Title (linked to node)

Node: Type = Premium
Node access: Access

This does not normally show up but as soon as you buy content it magically appears. Hope this is of value to others. (maybe worth adding to the module?)

dennis's picture
Joined: 07/24/2009
Juice: 4
Providing Node Access not Working


I want to provide access to another node directly after payment.
The node is hidden by default via the role based settings under .../node/3/access.
I defined the settings for the product in node/2/edit/features like this:
"Grant indefinite access to node 3, 0 days after purchase"

I changed line 166 from uc_node_access.module to provide 0 delay
'#options' => drupal_map_assoc(uc_range(0, 52)),

When I log in and buy node 2, I still dont get access to node 3,
even when the payment status is set to received.

What am I doing wrong? Is this because my patch in line 166?


mr.andrey's picture
Bug FinderGetting busy with the Ubercode.
Joined: 08/12/2008
Juice: 153
Re: Providing Node Access not Working

Interesting... did you ever get this working?

I'm in the same boat.

In my case there's absolutely no reason for customers to wait before getting access to a node.


UPDATE: http://drupal.org/node/358545 has a solution posted.

dennis's picture
Joined: 07/24/2009
Juice: 4
Patch on http://drupal.org/node/358545

Seems like this patch is an elimination of the whole access delay handling.
Removing the whole feature seems not like a good solution to me. Smiling

billb's picture
Joined: 05/28/2010
Juice: 4
uc_node_access & quiz


I' trying to use this to charge for access to a quiz for a client, have followed every instruction I can find on the internet & then played around with every setting I can find & appear to be so close to getting this working, but alas with no avail!

I have the following modules enabled: ACL 6.x-1.3, Content Access 6.x-1.2, UC Node Access 6.x-1.x-dev, UC Node Access ACL 6.x-1.x-dev, Ubercart 6.x-2.4
(I was also using node_access 6.x-1.3, but disabled this module to try to get things working, but it didn't appear to make any difference.)
I have set /admin/user/permissions to allow anonymous / authenticated users to allow quiz access (tried removing access to all users here but this didn't help)
I have been to: /admin/content/node-type/quiz/access and unchecked all of the boxes except Enable per content node access control settings which is checked. I have also set the priority to 10 under advanced.
I have checked /admin/store/settings/products/edit/features and found that ACL/Content access is selected in the node access settings
I have created the quiz
I have created a product (with a price of £0 for testing), gone to features > node access selected the relevant sku and the node id of the quiz, then selected 0 days delay and indefinite access.
I have then logged in as a test user, purchased the product and then tried going to the quiz but I get an access denied error!

I have noticed that if I go to the quiz logged in as admin and go to the edit > access control tab, the test user is already listed under the "grant view access" list as I would have hoped.
If I change nothing on this page and simply submit the form then everything seems to work fine, the test user can access the quiz fine as expected. obviously this process needs to be automated, I can't be going in to the edit quiz page & submitting this form manually every time someone purchases access!

If anyone can give me any pointers as to where I am going wrong, I would be really appreciative !

Many Thanks!


webmaster_prwa's picture
Joined: 09/23/2009
Juice: 35
also having trouble getting uc_node_access to work

I am also having trouble getting uc_node_access to work. I had Drupal Taxonomy_Access_Control installed but disabled it so as not to conflict with Drupal Content_Access. I was able to get all the uc_node_access prerequisites installed and everything configured, but only ever got to the point that everyone always had access to the node I sold OR no one had access.

Could someone who has actually get uc_node_access working offer some tips about their configuration?

Thanks for any help,


juliaroberrt's picture
Joined: 03/13/2013
Juice: 3
Boiler Replacement

I am happy to be the part of this post

Boiler Replacement

moulai's picture
Joined: 03/16/2013
Juice: 3
good !

good future thanks for u Smiling
moulai from..
مواطن بسيط

pravid001's picture
Joined: 08/22/2013
Juice: 4
Re: UC Node Access

Thanks for the overview. I've been trying to develop a site with complicated access controls and am running into big problems with multiple access modules canceling out each others grants. Pasadena personal trainers