group permission for albums doesn't work group permission for albums doesn't work
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

group permission for albums doesn't work

Started by shoe, October 16, 2003, 02:31:47 AM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

shoe

i get the following error message when i set a specific group permission to an album with a user not restricted with this specified group, if it's the only album in this category:

Warning: Invalid argument supplied for foreach() in /home/www/mydomain/testgallery/themes/rainy_day/theme.php on line 1199

   foreach($alb_list as $album) {
        $count ++;

        $params = array('{COL_WIDTH}' => $column_width,
            '{ALBUM_TITLE}' => $album['album_title'],
            '{THUMB_CELL_WIDTH}' => $thumb_cell_width,
            '{ALB_LINK_TGT}' => "thumbnails.php?album={$album['aid']}",
            '{ALB_LINK_PIC}' => $album['thumb_pic'],
            '{ADMIN_MENU}' => $album['album_adm_menu'],
            '{ALB_DESC}' => $album['album_desc'],
            '{ALB_INFOS}' => $album['album_info'],
            );

        echo template_eval($album_cell, $params);

        if ($count % $columns == 0 && $count < count($alb_list)) {
            echo $rows_separator;
        }
    }


and i even can't delete the album, change properties or edit pics when i'm logged in as a member of this group

Joachim Müller

got a link where we can take a look?

GauGau

shoe

check this link:
http://www.talebox.com/coppertest/index.php?cat=2

@gaugau: i send you a pm with login and pass for admin and user with specified group.

Joachim Müller

the error message goes away if you choose another theme, so my first guess is you over-modified the theme.
I then chose default theme, created an album, created a cat, created another album in the new cat I didn't have the properties button, so I guess you over-modified that too.
Try with a fresh install (or at least with the origina files that come with the downloaded package), no modifications at all! Get your permissions running, then start modifying files.

GauGau

shoe

the error message just goes away if you choose the default theme, on all other themes the message appears. i didn't modify any of the themes. this is a fresh installation of coppermine 1.2 rc2 with no modifications at all.

Neofred

Hi gaugau,

I got the same error message.  :(

greetz

Neofred

Jess

My problem is similar if not the same.

When I hide an album so only a specific group can see it,
even as an admin, or a member of the group or both,

it shows up but only as a single thumbnail, there is no text
there is no title and the link ends as album=
with no number so when clicked, its reported as non existant

if you aren't a member, you just cant see it at all.

Neofred

My problem is a little bit different from the others, because I've updated an existing 1.1 installation from CPG standalone. The group function works very well on this version. And the update was right smooth 8) . The only error is this in the album view:
Warning: Invalid argument supplied for foreach() in /usr/.../x2o.de/bdb/themes/water_drop/theme.php on line 1177
Hope anybody find a solution for us   :(

Greetz

Neofred

Joachim Müller

I just started a bug tracker on this issue - we'll keep you informed...

GauGau

windwind

i've encountered the same problem too when i enable the "View by members only" function.

Warning: Invalid argument supplied for foreach() in
/public_html/gallery/themes/hardwired/theme.php on line 1189


Thanks for helping!

cadsup

view by members only...

where is this funtion please?

cadsup

Ok I found 'Group Permissions' in 'Properties' of the album

I set it to 'Registered only' but didn't realise it excluded admin from looking at them...

now I can't find how to set it back?! can't see any thumbs, just  the album name.

Help me - I'm drowning! (please)

OK Sorted,

You can't view Albums as Administrator if they are set to Registered Users Only :D

Glad I learnt to swim in time

windwind

Quote from: "cadsup"view by members only...

where is this funtion please?

In the album properties,  "Album can be viewed by Members of the 'Members ' group" in Permissions for this album.

i also failed to delete the album somehow the album was crashed or sometthing after the i set this permission.

Thanks for help!

Joachim Müller

admin can still see albums that "belong" to other groups as long as he's in admin mode; in user mode (a simulation what a "regular" user can see) he can't - this is by design and is meant to be this way.

GauGau

cadsup

I tried setting 1 album 'Registered Users' & 1 'admin only'
In admin mode I can only see thumbs of 'admin only' in home page
logged in as a reg user I can only see thumbs of 'Reg Users' album
Still see album titles, still able to see last uploaded & random for both

Joachim Müller

what's your config setting for "Show private album Icon to unlogged user"? If it's "no", then you even can't see the album that belongs to a special group when logged in as admin...

GauGau

tlicking

I get the same error when setting "Albums can be view by"  = "Members of the 'Registered' group"   The only way to recover is to delete the album, re-create and allow "Everybody" (public album)

Has anyone found a solution?

Thanks,
Todd

cadsup

Thanks very much GauGau

That was indeed the thing I was missing :D

btw any news on 1.2 porting for nuke?

thx again

Joachim Müller

I'm not involved in the PHPnuke port, check the appropriate board. If you're very interessted and know what you're doing you can get the latest dev code using the web-cvs (which lags a little behind the "real" cvs): http://cvs.sourceforge.net/viewcvs.py/coppermine/phpnuke/

GauGau

Brendan

You don't have to delete the album to get it back.  Edit another album and select the album with the problem in the pull down.  You can change the permissions back to Everyone.

-Brendan