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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | screenshot.jpg | 66.38 KB | naeemdrupal |
| #2 | screenshot2.jpg | 98.14 KB | naeemdrupal |
Comments
Comment #1
frank ralf commentedTry the following:
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
Comment #2
naeemdrupal commentedHi,
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.
Comment #3
xjmThe answer to #2 is to use the Views module.
Closing as the original question was also resolved.