Problems with User galleries and group permissions. Problems with User galleries and group permissions.
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Problems with User galleries and group permissions.

Started by Muttster, November 14, 2003, 02:23:36 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Muttster

I have a created a group called "family" that has the same permissions as admins.  When a user tries to open the gallery they get "The Selected album/picture does not exist."  I know that the picture and album are there as I am able to view the pictures if you click on the "most viewed" or  " top rated".  If I change the permissions on the album to allow "everyone" access, the album loads correctly.  I have created a test account if that would help.

www.aquaphy.com test/test

Also a side question- On the Modify user panel, in the User group section, i have a drop down list that includes all the groups.  I also have a check box list of all the groups.  Does one selection supersede the other, or can I use the check box selection to include users in multiple groups.

Thanks in advance

Muttster

I tried to open the user gallery with the debug on and received the following:

Quote from: "Muttster"IUSER:
Array
(
    [ID] => e873f8620f429a8c4a4cbb8c979f3594
    [am] => 1
    [liv] => Array
        (
           
  • => 46
  • [1] => 47
                [2] => 42
                [3] => 32
                [4] => 54
            )

    )

     
     
    Queries:
    Array
    (
       
  • => SELECT * FROM cpg11d_users, cpg11d_usergroups WHERE user_group = group_id AND user_id='2'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = 'f993ace257e2b8cace903c3d56c56bf9'
  • [1] => DELETE FROM cpg11d_banned WHERE expiry < 1068944581
        [2] => SELECT * FROM cpg11d_banned WHERE ip_addr='204.176.146.51' OR ip_addr='204.176.146.51' OR user_id=2
    )

     
    GET :
    Array
    (
        [album] =>
    )

     
    POST :
    Array
    (
    )

     
I have also found that the user gallery works correctly when access is limited to any of the default groups.  When I limit access to a custom group it no longer works.

Any help would be appreciated.