Posted by charoite on December 1, 2012 at 5:35am
I made a calendar in drupal with the content type of event to put stuff in it. Now though, I only want myself as the administrator to be able to see it. edit it, and not allow any authenticated or guest users to see or access it.
How do I assign a specific basic page so only to a certain role of user can see it?
Comments
Standard permissions allow
Standard permissions allow you to control who can add/update/delete a particular content type.
To restrict viewing of a content type you need a module like content access.
I found out, I think
I found out how to hide it in showing up in the menus from certain users.
structure / main menu / list links / edit / restrict item visibility / show menu only to selected roles / check administrator
the url name is calendar.
What do I do to restrict access to this path only to the administrator so someone can't just type www.webpage/calendar and view it?
step by step if possible.
I have content access installed and enabled
If calendar is a content type
If calendar is a content type you need a module like content access. If calendar is a view it has it's own access controls. Not with either of these approaches you do not need to restrict the menu visibility.
Thank You!
That is what I was looking for.
I checked under structure / view and found calendar.
operations / edit
Page settings / access
access permissions / none - permissions - role
checked role box and selected administrator
when I signed out to type the URL, it said cannot access it, which is what I was looking for.
=-=
indicates a module in use that intends to provide menu item access. Assuming you are using the calendar module to list events, you can set the permissions for who can view the calendar in administer -> permissions. Those without permissions to view the calendar won't have access to the menu item nor the path. Then you can set the permissions for the event content type so that specific roles can view/edit/delete it.
Node Access Module
Try the node access module
http://drupal.org/project/node_access
--
Hire me and Follow me on Twitter
not compatible
I tried it, unfortunately, it is not compatible with version 7.x