How to set logged in user automagically?

iggy

Joined: 2002-09-28
Posts: 1
Posted: Sat, 2002-09-28 05:25

Hi,

I'm trying to set up multiple instances of gallery pulling from the same albums dir. So far it's going great and is surpisingly easy but I'd like to have some instances of gallery display some albums and not others without being logged in.

It seems to me the way to go is to set a user who can see just some albums and then set that user in classes/LoggedInUser.php except it doesn't seem to work. The given gallery acts like its logged in (as an anonymous user) but doesn't display the gallery.

Here's what I tried

class LoggedinUser extends Abstract_User {
function LoggedinUser() {
$this->username = "duh";
$this->fullname = "duh";
$this->setIsAdmin(false);
$this->setCanCreateAlbums(false);
$this->uid = "duh";
}

function isLoggedIn() {
return true;
}

function isPseudo() {
return true;
}
}

Any help/explanations/pointers/bronx cheers would be much appreciated!

Thanks,
Iggy