Solved

Drupal node access based on Username

Posted on 2010-11-10
6
599 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 500 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
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
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 500 total points
ID: 34113416
Oh wait, I think you need the ACL module to make this work
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
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…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

708 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now