guests can see album - but login is required to get into the album

wpichler

Joined: 2009-03-02
Posts: 1
Posted: Mon, 2009-03-02 20:04

Hi all,

i have seen that this question has been asked before - but i havn't found a definitiv solution for it. And the posts are already around 2 years old... so maybe there is already a solution for it.

As mentioned in the subject - i want to protect albums so the guests can see the album - but get forced to a login page when trying to enter the album.

I have set the core.viewItem Permission on the album for everybody to get the album to display, and removed all Everybody permissions on its childs. But i do not a login page when a guest tries to enter the album. The guest only gets an empty album. I am doing my own theme - so i have taken a look at the smarty variables available - to see if there is a variable which i could use to know if an album is public viewable or not - but havn't seen one (i do want to display a key symbol with the album if a login is requiered)

I hope someone could help me with this

regards,
Wolfgang

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Mon, 2009-03-23 21:30

I don't think much has changed, though some code may have:
http://gallery.menalto.com/node/35288

Though it looks like someone has updated the code in there to work with 2.3

Find that and many other user modifications here:
http://codex.gallery2.org/Gallery2:User_Contributions

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here