Denying a few users access

Phoca Download - download manager
savaan
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 31 Jan 2011, 05:56

Denying a few users access

Post by savaan »

I would like to deny a few users access to a Category or all Categories. I'm guessing this isn't a feature many people need so maybe someone could just point me in the right direction to adding a line or two of code to get what I need.

I'm running Joomla 1.5.15 and Phoca Download 1.3.7.

As I understand it I can allow access to specific users while excluding the unwanted users by editing the Category and selecting Access Level: Registered then selecting individual users under Access Rights. This is great if you want to allow a few users but not so good if you want to deny a few users access.

What is the best solution in a situation like mine where I have 11 phocadownload Categories, 50+ users and I only need to deny 1-3 Registered users from being able to download? If I use the above mentioned solution then I would have to edit every Category when I add a new Joomla user so that the new user has access. I wish there was simple way to add a line of code to deny a list of users access to a category or even all of them.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Denying a few users access

Post by Jan »

Hi, I think, then you need to customize the code, e.g. make the reverse (selecting users will be reverse), so you need to modify the sql query reverse. Selected user cannot see the category, or maybe do some customization into the code - hardcode the users id so they cannot download the items. :idea:

Jan
If you find Phoca extensions useful, please support the project
Post Reply