Quote:
Originally Posted by josiespencer
I've got a question: is there a way to limit just one or two users to a specific download quota? If a user belongs to three or four user groups, his rights seem to go from the top down. If any one user group has no quota for downloads, this user's downloads are not limited in any way. So I want a hard coded download limit for one or two users so far.
|
Yes, there is a way.
It can be done with a plugin which is configured to check on the specific userid. If you feel comfortable with a small bit of coding, take a look in the extras/limit-useraccess directory, where you'll find some samples which give quotas by testing other parameters. Otherwise, I will write something for you - it's about ten or twenty lines of code.
The way LDM usergroup allowances work is not quite as you describe. The quotas are based on the user's primary usergroup. Other permissions are done the way you say - the code checks all the user's groups to see if it should give the permission or not. I thought about doing it the same way for quotas also, but it wasn't obvious to me what this would mean. So I stuck with using the primary group.
On a separate matter - I'd like to get to the bottom of your problem with long file names, but need access to you site. Please can you reinstate my account.