Quote:
Originally Posted by itsblack
Hi Andrew, today I try to use the allowance system to control the downloads. I let the registered user download 1 item every 1 day.
Attachment 62938
And I make a test myself. But I can download different item one after another! Right under the category descritption show that "Allowances: 1 files/ 2 used". That makes me confuse. I also disabled the option "can_bypass_bandwidth_limits ", so I can't figure it out, what's happened.
|
Are you 'downloading' or are you hitting 'links' - i.e do the entries that you are selecting have filetypes that are defined as downloads (i.e. with mimetype data in the VB attachments table).
The test for sufficient file/bandwidth allowances is only applied when you try to make a 'download'. For 'links', the allowances don't apply, because LDM doesn't manage the transfer.
However, you've found a bug in the reporting system ("Allowances: 1 files/ 2 used"), because the figure "2 used" is counting the links you have hit as well as your downloads. I'm surprised that this hasn't been noticed before, because the code in question hasn't changed for quite some time. (There's a piece missing in the sql query that I use to produce that report.) Sorry about that.