Solved

Drupal node access based on Username

Posted on 2010-11-10
6
614 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

 
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

Industry Leaders: 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

FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

623 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