Deny access to group of users

Events happening in the community are now at Drupal community events on www.drupal.org.
dreadstar's picture

Drupal newbie stumped with 2 problems somewhat related to each other.

problem #1

How do I deny access to anonymous users (no account) to any part of the site except for the frontpage or a specific node page (like an instruction page)? If I set the anonymous users permission of node access - access content to disable, anonymous users will only see a 'denied access' page rather than the frontpage which is not what I want.

problem #2

How do I deny access to a group of users (for example authenticated users group) from clicking/seeing a custom navigational menu (for example a files section area)? I would like this menu accessible only to administrators but not to the other user groups.

I would appreciate a friendly nudge to the right direction.

Comments

user_access

jng12's picture

take a look at user_access function.

http://api.drupal.org/api/function/user_access/6

Are you a PHP developer? with this, you can restrict access to certain users to areas in a page.

hope this helps on both problems.

solved

dreadstar's picture

tnx jng12@drupal.org

I was hoping for a simple solution. After making sure the core program could not do it. I decided to install the content access module and solved my problem.

User acess

johnnoc's picture

User access/authentication: http://drupal.org/taxonomy/term/74

You can probably take a look at the modules Content Access and Path Access.

----------------------------------------------------
Only local images are allowed.

for # 2 You can also extend

DL's picture

for # 2 You can also extend it by installing menu trails.

collectivetech.org
Technology for organizations. Open Source. Consultancy. Training.

collectivetech.org
Technology for organizations. Open Source. Consultancy. Training.

Philippines

Group organizers

Group categories

Post category

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: