How to restrict upload by user group and category How to restrict upload by user group and category
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

How to restrict upload by user group and category

Started by dahvoo, December 29, 2013, 05:22:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dahvoo

I have several categories containing albums. I also created several user groups / users.

I want to restrict a particular user to a particular category, so each of my user can only upload to their own category. Viewing is open to all public.

I have tried all permission possibilities at the various tab. However,  all my users can upload to all the categories. ie. went User A login, and click on Upload files, the drop-menu show all the categories, and can upload to any albums within those categories.

Is 'Public albums upload' open to all user group? Is "Visitors can upload files" open to all user group? Can I restrict User A to Category A, User B to Category B etc.  for upload files.  ( I'm repeating to make it clear. thanks)

Thanks.


ΑndrĂ©

Out of the box you cannot set such permissions. But as you said that each user has an own category, I assume he should be the only user who uploads pictures to that albums. If so, disable public upload and instead, assign the albums to the corresponding user (either directly in the database or create the albums with that user account / let them create).