Deny access to group of users

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.

Groups:
Login to post comments

user_access

jng12 - Tue, 2009-02-17 17:17

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
dreadstar - Fri, 2009-02-20 03:33

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
JohnNoc - Wed, 2009-02-25 15:46

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

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


for # 2 You can also extend

DL's picture
DL - Fri, 2009-02-27 08:44

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

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