I'm trying to change the default user permissions for user albums ([useralbum]). I've successfully changed the default user permissions from All Access to core.view and cart.add, but I cannot find the correct permission ID for the View Resized Versions permission. Can any of you guys tell me what it is?
In UserAlbumHelper.class I changed this:
$ret = GalleryCoreApi::addUserPermission($albumId, $user->getId(), 'core.all');
if ($ret) {
GalleryCoreApi::releaseLocks($lockId);
return $ret;
}
to this:
$ret = GalleryCoreApi::addUserPermission($albumId, $user->getId(), 'core.view');
if ($ret) {
GalleryCoreApi::releaseLocks($lockId);
return $ret;
}
$ret = GalleryCoreApi::addUserPermission($albumId, $user->getId(), 'core.the ID I need');
if ($ret) {
GalleryCoreApi::releaseLocks($lockId);
return $ret;
}
$ret = GalleryCoreApi::addUserPermission($albumId, $user->getId(), 'cart.add');
if ($ret) {
GalleryCoreApi::releaseLocks($lockId);
return $ret;
}
Also, this change (with just the core.view and cart.add permissions) adds in a whole bunch of user permissions for the admin, which are unecessary. How do I get rid of these?
Thanks in advance.
Josh
Gallery version = 2.2 core 1.2.0
PHP version = 4.4.4 cgi
Webserver = Apache/1.3.33 (Unix)
Database = mysqlt 4.0.27-standard-log, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, LinkItemToolkit, NetPBM, SquareThumb, Thumbnail, Gd
Acceleration = none, none
Operating system = Linux infong 2.4 #1 SMP Thu Jan 13 08:59:31 CET 2005 i686 unknown
Default theme = carbon
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3
Rows in GalleryAccessMap table = 32
Rows in GalleryAccessSubscriberMap table = 14
Rows in GalleryUser table = 5
Rows in GalleryItem table = 12
Rows in GalleryAlbumItem table = 6
Rows in GalleryCacheMap table = 0
Posts: 1
wai my hauts mats $ gallery