Albums permission

DenJS

Joined: 2005-03-02
Posts: 3
Posted: Thu, 2005-09-15 04:24

I want setup my gallery for multiple users and also i want set maximum image size for ALL USERS.
How can i do this? If i set size limit in root album then user can simply change this in own album which is sub-album for root. I can't understand how to set fixed permission.
Thanks for help!

p.s.
Sorry for bad English.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2005-09-15 04:33

Currently the permissions are not fine grained enough to alone them to create albums, yet not change the album settings. However, you can edit the template files to not display those options if the user is not an admin.

If you search the forums you should be able to find some information on how to do this. Here are 2 topics I've saved the links of for future reference:
http://gallery.menalto.com/node/31527#comment-113768
http://gallery.menalto.com/node/27556#comment-100864

They don't do exactly what you're looking for but discuss displaying content based on user.

The template you'd probably want to modify is this one, /modules/sizelimit/templates/SizeLimitOption.tpl
{if $user.isAdmin}
... content here ...
{/if}

Then the Admins will see that option, but the users won't. I don't know if this will break anything or if it will work. Backup your work, and create a 'local' directory as the instructions at the top of the .tpl file instruct.