coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 permissions => Topic started by: JamesChip on December 30, 2005, 11:04:12 AM

Title: User Galeries are not Shown under Category "User Galeries"
Post by: JamesChip on December 30, 2005, 11:04:12 AM
I installed pcg 143 and tried to test it with several testusers. Now I have the following problem:

If the rights of a user galery are set to "public" I thought that other users should see the galery under the category "User Galeries/<User Name>". But only for the users of the Administrators goup the category "User Galeries" is non-empty. Normal "Registered" users just see an empt category. Not event their own galeries are shown in this category.
Only by manually setting the category number in the URL a registered user can access other user galeries. For example by manually setting index.php?cat=10002 a registerd user can access the galery of another user whos category number is 10002. So it doesn't look like a problem of having set wrong user rights.

Maybe I also have to mention that the thestgaleries of my testusers are still empty because I have some problems with the PHP Safe Mode restrictions of my provider.

My question is: Where is the switch I have to toggle in order to get rid of this problem (not the Safe Mode problem)?
Title: Re: User Galeries are not Shown under Category "User Galeries"
Post by: Joachim Müller on December 30, 2005, 11:14:30 AM
the user albums will be visible as soon as you upload pics to them. Fix your upload issue first, then fix permissions.
Title: Re: User Galeries are not Shown under Category "User Galeries"
Post by: Nibbler on December 30, 2005, 11:16:19 AM
revealing empty user albums (http://forum.coppermine-gallery.net/index.php?topic=25630.0)
Title: Re: User Galeries are not Shown under Category "User Galeries"
Post by: JamesChip on January 01, 2006, 07:54:50 PM
My provider just disabled PHP Safe Mode and as administrator I'm now able to upload pictures. But the problem remains the same. Additianaly I noticed that users in the group "Registered" have no possibility to upload pictures (there is no button "upload" or something like that), even though they are allowed to have a personal album and therefore must be able to upload pictures.
Title: Re: User Galeries are not Shown under Category "User Galeries"
Post by: Joachim Müller on January 02, 2006, 07:21:44 AM
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble
Title: Re: User Galeries are not Shown under Category "User Galeries"
Post by: JamesChip on January 02, 2006, 10:31:19 AM
Now I it works: users can upload albums and upload files to them. I set the group rights as follows:

Upload to public albums: yes
Users can have personal galery: yes

In the configurations tab I set the option "albums can be private" to "no". Now users can upload files to their user albums and nothing more.

The hole user and access rights management seems not to be very intuitive. For instance setting the group rights to

Upload to public albums: no
Users can have personal galery: yes

users can have a galery but there is no way to upload files. My understanding of a personal galery is that the owner of the gallery can upload files no mather if he has the right to upload into public albums or not.
Title: Re: User Galeries are not Shown under Category "User Galeries"
Post by: Nibbler on January 02, 2006, 10:41:15 AM
Hmmm, in 1.3 the option was named 'Can upload files' and in 1.4 it is renamed 'Public albums upload' although the functionality of the option remained the same. So you do need to enable 'Public albums upload' to allow uploads into personal galleries.
Title: Re: User Galeries are not Shown under Category "User Galeries"
Post by: JamesChip on January 02, 2006, 11:35:52 AM
Quote from: Nibbler on January 02, 2006, 10:41:15 AM
Hmmm, in 1.3 the option was named 'Can upload files' and in 1.4 it is renamed 'Public albums upload' although the functionality of the option remained the same. So you do need to enable 'Public albums upload' to allow uploads into personal galleries.

Maybe one should think about renaming it to "Can upload files". Nevertheless the combination of having a user galery but not beeing allowed to upload pictures makes no sense.

I also discovered the solution for my initial problem: If "Albums can be private" is set to "yes" and just one user sets the rights of his album not to public the category "User galeries" remains empty, that is all users who have set their albums to public are not listed in this category. Maybe I made something wrong but I think it is a bug.