at my site tobynews I have users that would be registered as an "author." What I'd like to do is create a page such as an "Author's Resources" page that would only be accessible by someone who is registered as an author through the site. I'm not exactly sure how to approach this, other than trying to connect to the database's user table with a form. Any help is greatly appreciated.


You could do that using Drupal's role based access control system.

For example, assign the role of "author" to the author users. You can then restrict access to the "Author Resources" page by user role. e.g

  1. Create a page using the Views module and adding an access restriction.
  2. Create a page using hook_menu and restrict access to that role in the "access callback"

Or (following on from David Thomas' answer) if you are using Panels you can restrict access by roles.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.