Greetings Tuan,
Here are my scenarios and what happens:
1 - I have a document where a user must be logged in (registered group) in order to download. I set the document's permissions for usergroup Registered to 'allowed'. When a user clicks the download button, they are redirected to the login page which has a message "You must be logged in or register to download." When the user logs in, the download starts and that is great! BUT it stays on the login page. So this example is good but the fact that it stays on the login page is a problem. Is there a way to have it redirect back to the Edocman page that they clicked to begin with?
2 - I have a document where a user must be logged in and part of a custom usergroup (premium group) in order to download. I set the document's permissions for usergroup Premium to 'allowed'. When a user clicks the download button, they are redirected to the login page which has a message "You must be logged in or register to download." When the user logs in, if they are in the usergroup Premium, the download starts and that is great! BUT it stays on the login page. So this example is good but the fact that it stays on the login page is a problem like the 1st example. Now if they are registered but not part of my custom Premium usergroup, they still recieve the same message that says "You must be logged in or register to download." This is a problem and doesnt make sense to the user because they are logged in. Is there a way to have it give a message that they need to be in the appropriate usergroup in order to download? This would be good for both examples.
So 2 problems... 1) When users login and download starts, the page stays on the login page. 2) If a user logs in but is not on the correct usergroup level they still receive the same message to log in but they are already logged in. So the message should say that they need to be at "CUSTOM LEVEL" to download.
Here is the link to a non-live site you can see whats happening =
hekamultimedia.com/demo/mdw-ntr/resources/digital-library
Click on download for the Test Document without being logged in and you will see that it redirects properly for you to login. Use the user=demo pass=demo and you will see the Test Document will start downloading but stays on the login page. (Thats problem #1)
Then try downloading Test Document 2 which is set for a usergroup premium and the Demo user is not part of and you will see the Message will just say "You are not allowed to perform this action." Is there a way to change the message to say what group they must be part of to download?
Please advise and thanks!