forum.coppermine-gallery.net

No Support => Feature requests => Scheduled for cpg1.5.x => Topic started by: Konstantinos on April 01, 2006, 09:07:37 pm

Title: problem when i change permissions
Post by: Konstantinos on April 01, 2006, 09:07:37 pm
I have created a custom group where it is able to upload to public albums while the register group i want to have only private albums. when i go to edit the groups when i select the register group to Public albums upload NO then they cant upload neither to private albums cause the Upload image link in the menu gets lost. I have to allow Public albums for registered members to Yes in order the registered to upload pics but then they can upload pics to public albums which i dont want. Visitors can upload files for the public albums is set to yes .Any help ?

gallery is at http://www.hairtransplantphotos.net

test login test/test

here are my permissions
Title: Re: problem when i change permissions
Post by: Nibbler on April 01, 2006, 09:43:44 pm
Use album properties to control upload rights.
Title: Re: problem when i change permissions
Post by: Konstantinos on April 01, 2006, 10:30:29 pm
there is a problem here. The problem is that when i set in group Permissions Registered members Public Upload to NO they cant even upload private. The dont have access to update.php.  No matter what i set to album properties
Title: Re: problem when i change permissions
Post by: Nibbler on April 01, 2006, 10:44:43 pm
Set Public upload to YES, and then disable uploads to the public albums in album properties.
Title: Re: problem when i change permissions
Post by: Konstantinos on April 01, 2006, 10:47:16 pm
this will work for the registered users. But i want 2 custom groups that i created to be able to post pics in the Public albums while the register wont. This is something i cant do
Title: Re: problem when i change permissions
Post by: Konstantinos on April 02, 2006, 08:43:07 am
it seems to be a bug and u need to check it. when i set registered users public uploads to NO they cant upload NOTHING. this isnt what it should be like. U cant have registered users post in only public galleries and a custom usergroup to upload in ALL categories.
Title: Re: problem when i change permissions
Post by: Stramm on April 02, 2006, 11:18:58 am
expected behaviour
-If you don't allow registered users to upload to public galleries and they actually can't do that then this is pretty much perfect.
-If you create another usergroup and give that groups members the permission to upload to public albums and they are able to do so... cool. As it should be.
Title: Re: problem when i change permissions
Post by: Konstantinos on April 02, 2006, 11:27:17 am
when i apply permissions to album Visitors can upload files then the registered users can upload too. this is not what i want, i want ONLY the custom group to be able to upload files in public galleries and registered groups to upload ONLY private. can i send to someone my admin login to check it out ?
Title: Re: problem when i change permissions
Post by: Stramm on April 02, 2006, 11:34:38 am
can't replicate your problem.
I've two groups, registered and test
registered: 'Public albums upload' no
test: 'Public albums upload' yes

test can upload, registerd not
Title: Re: problem when i change permissions
Post by: Konstantinos on April 02, 2006, 11:40:21 am
when i set for registered users Public uploads to NO they CANT even upload to PRIVATE ALBUMS, The upload link is gone and they dont have access to upload.php
Title: Re: problem when i change permissions
Post by: Joachim Müller on April 02, 2006, 11:45:17 am
the test user account you posted in your initial posting doesn't work for me, so I can't replicate your issues.
Title: Re: problem when i change permissions
Post by: Konstantinos on April 02, 2006, 11:46:10 am
try test with pass 111
Title: Re: problem when i change permissions
Post by: Stramm on April 02, 2006, 11:58:40 am
I've deleted your admin login.. don't post that publically and better to change it asap

I've seen what you mean and it needs looking into. Have replicated that behaviour on my own test install
moving to bugs board
Title: Re: problem when i change permissions
Post by: Stramm on April 02, 2006, 01:25:29 pm
after having a quick look I've seen that's actually the way cpg handles upload permissions. Would mean some coding top achive the desired effect.
Maybe something to consider for future versions??
Title: Re: problem when i change permissions
Post by: Konstantinos on April 02, 2006, 01:56:22 pm
will there be any bugfix soon ? i cant launch my gallery since i cant apply the permission they way they should be
Title: Re: problem when i change permissions
Post by: Nibbler on April 02, 2006, 02:02:11 pm
This isn't a bug. 'Public albums upload' in 1.4 in the same setting as 'Can upload files' from 1.3. It's a global setting.
Title: Re: problem when i change permissions
Post by: Konstantinos on April 02, 2006, 02:05:00 pm
well as i said i can not do what i want. I want registered users to be able to upload ONLY to private galleries and custom groups to be able to upload in ALL categories. and this is something i can not do . Stramm said the same thing
Title: Re: problem when i change permissions
Post by: Stramm on April 02, 2006, 02:09:06 pm
I suggested considering to change that behaviour within the next version. If you really need what you've written above then core code in several files needs to be changed. That's not done in a few mins
Title: Re: problem when i change permissions
Post by: Konstantinos on April 02, 2006, 02:58:22 pm
So i guess the best thing whould be to have 3 settings for upload permissions per group

a) Can upload pictures ?
b) Can upload to public albums ?
c) Can have personal gallery?

if b is set to No for registered users and set to Yes for a custom created group then registered users will be able to upload only to private albums while the custom group will be able to upload everywhere. i think is something important...
Title: Re: problem when i change permissions
Post by: Joachim Müller on April 02, 2006, 08:58:02 pm
permission issues are very complex - having some checkboxes or radio buttons on a screen where you set permissions is pretty easy. Creating the needed background (core code) with queries etc. is quite complex. Different permission models have been discussed on the developer-only board. We're not quite sure what will be realized in future versions. I'm not even sure that this is going to go into cpg1.5.x, but rather in the distant future.
Title: Re: problem when i change permissions
Post by: phdb on April 03, 2006, 12:08:49 am
There seems to be some confusion about words here.
What Konstantinos asks is -for me- indeed basic and it seems to me that it should be possible.
What you (as admin/owner of a site with Coppermine on it) want is to put your pictures online, in albums that you define. To add reason to come back users can upload their own pictures ... of course only in their own albums (not in your albums)

The misunderstanding seems to be with the wording in the panel "Public albums upload" seems to act as "can upload" ...

Immediately after upgrading from 1.4.3 to 1.4.4 I also bumped into this problem. And ... in the previous version the behaviour was exactly as Konstantinos and me expected. After upgrading my users did not find the "upload file" any more!!
(maybe this observation helps to check what went wrong?)

Anyhow, Konstantinos, please re-read the first answers of GauGau. Giving "Public albums upload" to the groups that should upload to private albums will enable them to upload (since it does not work as "Public albums upload" but as "can upload" (or "sees the menu "upload file"").
Try it out, you will see that when the user uploads files, he/she can only select his/her OWN albums! ... and that is -I believe- the behaviour that you want. Isn't it?

[after all, if you are not dealing with thousand users uploading their photo's, you can still monitor the process of uploading by requiring Admin Approval ... and at that stage you can choose to put it in ANY album.

I hope this helps.
Rgds,
Ph.