forum.coppermine-gallery.net

Dev Board => cpg1.4 Testing/Bugs => cpg1.4 Testing/Bugs: FIXED/CLOSED => Topic started by: Digitalmafia on July 05, 2005, 10:44:13 am

Title: Unusual permissions problem - Delete Files (Registered users only).
Post by: Digitalmafia on July 05, 2005, 10:44:13 am
I have searched the forums and find many folks that have permissions problems with uploading, but none like mine.
Registered users can upload, but not delete their images.  As Admin I can, however, delete the images.  When a registered user
attempts to delete a file they get this response:
You don't have permission to perform this operation.
(target album = 5)
I have set the file permissions correctly (as per the instructions) and read all of the documentation so perhaps I missed something?
Everything else in the app works great.  It was quick and easy to set up - I customized a template (heavy customization) with ease-great application-love it..
Here is the output from the debug mode:
USER:
------------------
Array
(
    [ID] => ef783b18193d23a5500ae82716cb1d5a
    [am] => 1
    [lang] => english
    [liv] => Array
        (
            [sort] => ta
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 2
    [user_name] => Blah
    [groups] => Array
        (
           
        )

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 0
    [num_file_upload] => 5
    [num_URI_upload] => 3
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 0
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Registered
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 0
    [group_id] => 2
)

==========================
Queries:
------------------
Array
(
    [album] => 5
    [start] => 0
    [count] => 25
)

==========================
POST :
------------------
Array
(
    [count] => 25
    [pid] => Array
        (
           
        )

    [aid11] => 5
    [title11] =>
    [caption11] =>
    [keywords11] =>
    [user111] =>
    [user211] =>
    [user311] =>
    [user411] =>
    [delete11] => 1
)

==========================
Page generated in 0.178 seconds - 18 queries in 0.017 seconds - Album set : ; Meta set: ;

Thanks!
J.
Title: Re: Unusual permissions problem - Delete Files (Registered users only).
Post by: Joachim Müller on July 06, 2005, 07:16:05 am
post a link and non-admin test user account with debug mode turned on
Title: Re: Unusual permissions problem - Delete Files (Registered users only).
Post by: Digitalmafia on July 06, 2005, 11:26:14 pm
Sorry about posting in the wrong section-thank you for moving it!

Here is the path to the site as well as the test account.

http://www.mini-az.com/cm/index.php

Username: test
password: test

Thank you!
J.
Title: Re: Unusual permissions problem - Delete Files (Registered users only).
Post by: kegobeer on July 06, 2005, 11:45:30 pm
Tell you what - once you change the Coppermine tag line to a color other than white, we'll help you.
Title: Re: Unusual permissions problem - Delete Files (Registered users only).
Post by: Digitalmafia on July 07, 2005, 02:09:22 am
arrgh
-just checked it in IE (I use firefox)-its working in both browsers now.

Thanks!
J.
Title: Re: Unusual permissions problem - Delete Files (Registered users only).
Post by: kegobeer on July 07, 2005, 02:48:20 am
You are using 1.4.1, so I'll move this to the appropriate board.
Title: Re: Unusual permissions problem - Delete Files (Registered users only).
Post by: kegobeer on July 07, 2005, 02:56:01 am
Hmm, I can create an album, but not delete a picture I upload.  I can delete the album, which deletes all files I uploaded.

Hmmmm.
Title: Re: Unusual permissions problem - Delete Files (Registered users only).
Post by: Digitalmafia on July 07, 2005, 05:50:35 am
'Hmm, I can create an album, but not delete a picture I upload.  I can delete the album, which deletes all files I uploaded.'

- I had not tried to delete the entire album-interesting that you can do that but the individual pics throw errors.
I did get a line error back:
/editpics.php - Line: 128
I will look into this file, any ideas?

Best regards,
Jason.
Title: Re: Unusual permissions problem - Delete Files (Registered users only).
Post by: Tranz on July 07, 2005, 06:13:44 am
Can they edit the files? In Config, did you set it so users retain control over their files?
Title: Re: Unusual permissions problem - Delete Files (Registered users only).
Post by: Digitalmafia on July 07, 2005, 07:06:28 am
'Can they edit the files? In Config, did you set it so users retain control over their files?'

As far as I can tell yes.  I have been through the config a dozen times and everything pertaining to allowing them to manage their files is on.
I did not, however, see a specific place for - deleteing files.  The can delete their albums without issue.  Almost all the User Settings are set to yes.
Anything specific I should look for? (I am sure I got the obvious).

Thanks.
J.
Title: Re: Unusual permissions problem - Delete Files (Registered users only).
Post by: the_todd on July 07, 2005, 10:15:38 am
I can confirm this problem also, it happens when I use modifyalb.php and try to delete an image I get the same message.
Title: Re: Unusual permissions problem - Delete Files (Registered users only).
Post by: Nibbler on July 07, 2005, 08:22:46 pm
Looks the same as http://forum.coppermine-gallery.net/index.php?topic=17802.0

Fix was never committed.
Title: Re: Unusual permissions problem - Delete Files (Registered users only).
Post by: Digitalmafia on July 07, 2005, 10:14:17 pm
Based on the other thread I guess un-commenting the line will fix?
I will  try this tonight and post results.
Thanks.
J.
Title: Re: Unusual permissions problem - Delete Files (Registered users only).
Post by: the_todd on July 08, 2005, 03:23:10 am
I uncommented the line in my gallery in editpics.php and it worked fine. This fix should be committed.
Title: Re: Unusual permissions problem - Delete Files (Registered users only).
Post by: Nibbler on July 09, 2005, 02:05:06 pm
Committed the stated fix.