Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Drupal node access based on Username

Posted on 2010-11-10
6
Medium Priority
?
631 Views
Last Modified: 2012-05-10
I need to be able to create new pages and/or Ubercart products that will allow someone with an administrator role to be able to set what users can view it based on their username and not their role type. I've tried to use the Node Access Modules but I haven't been able to get it to work.

My thought is to create a certain content type and/or product type and then be able to set access for a different user each time a new page or product is created.

What is the best module to accomplish this task.

Thank you for any help.
0
Comment
Question by:lallen30
  • 4
  • 2
6 Comments
 
LVL 17

Accepted Solution

by:
nanharbison earned 2000 total points
ID: 34112147
There is a module called content_access that allows you to set permissions to view pages based on access level or author
http://drupal.org/project/content_access
0
 
LVL 1

Author Comment

by:lallen30
ID: 34112467
Thank you for your comment. I am familiar with module but it allows access based on role type and/or the author that created the node. I need an admin to be able to create a page and set access for a non-admin to be able to view the page based on their username not their role type.
0
 
LVL 17

Expert Comment

by:nanharbison
ID: 34112629
Yes, you can choose user names to grant access to. See the screen shot below. You search for a user, and then can choose to add them to the grant permissions page

contentaccessmodule.jpg
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:lallen30
ID: 34113026
Are you using that with another module because I've installed it but that field isn't showing up for me. Also my tab up top says Access Control not Grant.
0
 
LVL 17

Expert Comment

by:nanharbison
ID: 34113241
Hmmm, I seem to remember I had trouble setting this up, but it didn't involve another module. What version of Drupal are you using?
0
 
LVL 17

Assisted Solution

by:nanharbison
nanharbison earned 2000 total points
ID: 34113416
Oh wait, I think you need the ACL module to make this work
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
This article discusses how to implement server side field validation and display customized error messages to the client.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question