Community

How to Set permissions for individual pages, menus, etc?

I've done some research, but I can't see how to restrict a page or menu to only be available to someone with a given role.

I have set up the custom roles, but I only want certain roles to see certain pages -- like users with a login at all, or even a particular login.

There seems to be a module that deals with content restriction needs like this, but from what I saw it's still in beta 1 and hasn't been updated since early 2011.

Restricting access based on page, menu, or other level must be a common need and requirement so I'm probably missing something obvious.

Thanks in advance.

- m

Comments

Content Access

http://drupal.org/project/content_access Module may serve this need.

Hth,
Sadashiv

Yes, this is the one I was

Yes, this is the one I was referring to in my posting that's only in beta 1 and hasn't been updated since 2011.

I went ahead and installed this content piece and immediately ran into the bug described here:

http://drupal.org/node/1110860

You know there's a problem since in the modules section there's an entry that's not "installed":

"Content Access Rules Integrations 7.x-1.2-beta1 Integrates Rules with Content access. Allows to act on access events, conditions, and actions."

I'm currently still unable to restrict site access and access to content based on user login. This need can't be that unusual, right?

What to do?

Thanks,

--m

As you replied the module

As you replied the module gives an error on install but I think the patch which is attached to the issue fixes the problem and then it can be used to restrict access.

Hth,
Sadashiv

Yikes! From what I see there

Yikes!

From what I see there is no information on how to "apply" that patch. Why didn't they just post a new content module?

Did I miss the steps on how to apply this patch?

Thanks,

-- m

I tried installing this

I tried installing this module http://ftp.drupal.org/files/projects/content_access-7.x-1.2-beta1.tar.gz i.e. 7.x-1.2-beta1 version and found no error when I enabled this module.

Unable to replicate the issue and am able to restrict access to content successfully.

Thanks,
Sadashiv.

Where do you see that you can

Where do you see that you can restrict content? If I go to any of the content Pages, I don't see anything different there to restrict access.

Go to Structure-->Content

Go to Structure-->Content types--> MY_CONTENT_TYPE

On this page you would be able to see "Access Control" tab. If you click their you will be able to restrict access to the content type. On this page you can enable content level access control using the checkbox " Enable per content node access control settings".

Then you will be able to see access control tab on each content of that type of node. In this tab you can restrict the access to particular role.

Hth,
Sadashiv.

Yes! Thank you so very

Yes!

Thank you so very much!!!

Excellent and easy to understand reply.

:)