Nested Album Permissions

Mr_S

Joined: 2002-08-17
Posts: 2
Posted: Sat, 2002-08-17 00:45

I want users on my site to be able to create a nested album owned by them so that each user gets there own personal album. I have done this no problem with the permisson LOGGENIN for create nested albums. BUT can it be set to remove this permission from the newly created nested album so that other users cant just go in and create albums under albums that where owned by different users? hmm hope that makes sence. For now I've just been reviewing by hand the newly created albums and removing the LOGGENIN permission for creating new albums after a user has made there personal album.

P.S. Thankx for the forum that mailing list was ugly.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2002-08-19 08:05

The only way to do that would be to write some code to do it. You'd have to modify do_command.php's "new-album" command so that it removes the LOGGEDIN user from the various permissions of newly created albums. Off the top of my head, you'd want to add a line like this:

$gallery->album->setCreateSubAlbum("loggedin", 0);

(but that's just off the top of my head -- you'll have to experiment).

 
Mr_S

Joined: 2002-08-17
Posts: 2
Posted: Thu, 2002-08-22 06:28

Well thats a start, thankx. I will look into it and see what I can do. Perhaps this might be a good thing to add into a future version? I would be nice to have deeper control of the privlages.

Still a great program thou I love it and can't wait to see what the future holds for Gallery.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Thu, 2002-08-22 19:11

We might be able to add this as part of the workflow code in G2.