Problem with Access Rights Problem with Access Rights
 

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

Problem with Access Rights

Started by Darkness, March 20, 2010, 10:01:36 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Darkness

I seem to be having a problem with the access rights. I tested 1.5.3 out locally by upgrading from 1.4.26. Whenever, I go to view thumbnails.php or displayimage.php, I get this error: You are not allowed to view any images.

I'm currently bridged with SMF2 and I checked the permissions and all the groups have full access to the images. I tried to disabling the bridging, I still get the same error. You can view the images when you're a guest though, just not when you're logged in.

I looked in thumbnails.php and this is the bit that's causing the error:

if (USER_ID && (USER_ACCESS_LEVEL == 0)) {
    cpg_die(ERROR, $lang_errors['access_none']);
}


It doesn't seem to be recognizing anybody who is logged in. I don't think this is a problem with the bridge because it happens when the bridging is disabled too.

onthepike

See if this helps:

http://documentation.coppermine-gallery.net/en/groups.htm

Access Level

For each group, you can set the group's access level to:

None - Users cannot view any images at all, except for the one thumbnail shown for an album or category. This option is only recommended for the guest/anonymous group if you want to force people to log in to view thumbnails and the rest. For other groups, this option usually doesn't make sense since your logged-in users will wonder why they logged in if they cannot see anything; the option is provided here in case some administrators find it useful. If you are going to set a group's access to 'none', make sure the guest/anonymous group is also set to 'none'. Otherwise, logged-in users will find that logging out gives them more access.

Thumbnail only - Users can view the thumbnails only. If they click on them, they will be shown a little dialog box that they are not allowed to view larger images.

Thumbnail and intermediate image - Users can see everything but the full-sized image pop-ups (if you have any)

Thumbnail, intermediate and full-size image - Users can access all sizes of images.

The setting here for the guest/anonymous group is the same as the setting "Allow unlogged users access" on the Gallery Configuration page under "User Settings". If you update the option here, it will update the configuration setting and vice versa.

Joachim Müller

You should start by this:
Quote from: Joachim Müller on September 28, 2008, 10:27:07 AM
8. Post links
When posting a support request, it's helpfull for supporters in most cases to see what the actual page looks like, that's why it's mandatory that you always post a link to your coppermine gallery page when asking for support. If your site contains adult content, make sure to post a warning together with your link!



Supporters might get into issues if they accidentally visit a page that interferes with their employer's internet policy. If your site contains adult content (even mild nudity even falls into this category), post the words "not safe for work" next to the link.
There is a reason why we have this rule.

As you are bridged, you should as well take a look at http://documentation.coppermine-gallery.net/en/bridging.htm#integrating_support_start and do as suggested there. Anything else is mere speculation.

Darkness

1) As I already said, I checked the Groups page and they all have full access rights to view all the images.
2) As I already said, I did the upgrade locally so I can't give you a link.
3) Again, I said this happens even when Coppermine isn't bridged.

Joachim Müller