Hello,

I have a sample code download page on my site and wish to grant access to content based on different roles.
e.g.
Let say
1. Role 'A' has view/download certain sample codes on the download page.
2. Role 'B' can view/download certain sample codes.
3. The basic 'authenticated user' should not be able to view/download this content.
4. Also Role 'A' user should not be able to view/download sample codes meant for Role 'B' users.
5. Some sample codes I should be able to allow view/download to Role 'A' users as well as Role 'B' users.

I am currently using the 'showdownload' module.

I have presently been able to accomplish the following.

I have created 2 roles A and B
I am able to restrict view/download access to certain sample codes to the 'authenticated user'.
However it is seen by both Role A and Role B users.
I have done this by coding it in the showdownload module

Any help ASAP would be appreciated.

CommentFileSizeAuthor
#2 screenshot.jpg66.38 KBnaeemdrupal
#2 screenshot2.jpg98.14 KBnaeemdrupal

Comments

frank ralf’s picture

Try the following:

  1. Create taxonomy for each role (e.g. "permission_A", "permission_B")
  2. Apply taxonomy to your nodes
  3. Set the TAC permissions accordingly for your roles

That should do the trick.

You might also have a look at the Node Access Control module (http://drupalmodules.com/module/node-access-control).
Also see there the column "Related Modules".

hth
Frank

naeemdrupal’s picture

StatusFileSize
new98.14 KB
new66.38 KB

Hi,

I was able to accomplish as I wanted. I am able to control view/download access to the different nodes as per role.

Now this is a download page where users can download sample codes/scripts uploaded to the site.

Please find attached a couple of screenshots.

Screenshot.jpg is what it is appearing presently.
Screenshot2.jpg is how I want it to appear as I go on uploading the files.

How can this be done.

xjm’s picture

Status: Active » Closed (fixed)

The answer to #2 is to use the Views module.

Closing as the original question was also resolved.