• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space
  • Chevereto Support CLST

    Support response

    Support checklist

    • Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • Confirm that the server meets the System Requirements
    • Check for any available Hotfix - your issue could be already reported/fixed
    • Read documentation - It will be required to Debug and understand Errors for a faster support response

Enable "anyone with the link" by default?

user_6592f

Chevereto Member
Hi,

I have a Chevereto website that has "Website privacy mode = Private" so that any visitors have to login first, and I would like users to be able to share image links with anyone. I could set "Content privacy mode = Force private (anyone with the link)", but that creates a new album for every upload and prevents the images being explored by other users. What I'm looking for is a way to have "anyone with the link" enabled by default. Is that possible?

Thanks.
 
To answer my own question and in case anyone else wants the same thing, the solution is to add this line in the /app/legacy/routes/image.php file:

Code:
        if (! Login::getUser()
            && ($image['album']['privacy'] ?? null) != 'private_but_link'
            && ($image['album']['privacy'] ?? null) != 'public' // allow public image links

And if you also want to share albums, this line in the /app/legacy/routes/album.php file:

Code:
        if (! Login::getUser()
            && $album['privacy'] != 'private_but_link'
            && $album['privacy'] != 'public' // allow public album links

I think it'd be nice if this could be made a built-in option.
 
Back
Top