Hello experts,
I'm new with Phoca Gallery…
I try and manage it to share pictures on the website of an association. It works well but I have a last issue I would like to solve to complete the functional requirements.
This issue is concerning the UCP and more precisely the upload rights given by default when an user has created a new subcategory.
For the moment, for each new subcategory created by an user, the admin has to set the access rights manually to all users, so that other users are allowed to upload pictures.
I would like that every users (registred) could upload pictures in all the existing subcategories created by other users with no intervention from the admin.
Is it possible ?
I hope someone could tell me how to configure and set up this ?
Thanks in advance !
Upload rights for subcategory creation
-
Fred_33
- Phoca Newbie

- Posts: 3
- Joined: 16 May 2015, 14:16
Re: Upload rights for subcategory creation
Re-Hello,
It seems that I found a solution by customizing the code. More precisely the function "createsubcategory" in category.php...
For the moment, it works like I want : upload rights are OK for all registered users when a registered user has created a new subcategory. In this way, all registred users could contribute to the new subcategory.
But I'm waiting for more real tests to validate completely !
It seems that I found a solution by customizing the code. More precisely the function "createsubcategory" in category.php...
For the moment, it works like I want : upload rights are OK for all registered users when a registered user has created a new subcategory. In this way, all registred users could contribute to the new subcategory.
But I'm waiting for more real tests to validate completely !
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Upload rights for subcategory creation
Hi, normally it works this way, when user creates a subcategory in UCP, he/she can then upload images there 
Jan
Jan
If you find Phoca extensions useful, please support the project
-
Fred_33
- Phoca Newbie

- Posts: 3
- Joined: 16 May 2015, 14:16
Re: Upload rights for subcategory creation
Hi, yes but only the creator of the subcategory has the rights to upload images... I wanted that all the users could upload in the new subcategory.
But again my modification seems working for the moment !
But again my modification seems working for the moment !
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Upload rights for subcategory creation
Ok
If you find Phoca extensions useful, please support the project