I think add
$sql = "SELECT a.aid, a.title, a.description, visibility, category, ...
$visibility = $alb_thumb['visibility'];
$category = $alb_thumb['category'];
if ($visibility == '0' || $visibility == (FIRST_USER_CAT + USER_ID) || strstr(USER_GROUP_SET, $visibility) || $category == (FIRST_USER_CAT + USER_ID)) {
$category == (FIRST_USER_CAT + USER_ID)
then,you can view and edit your albums.
1.2.1 can't view and edit self albums,if albums visibility is not 0 or
FIRST_USER_CAT + USER_ID
it not logic,i think it is bug!
I don't know why GauGau thinks the solution is not that simple, 'cos here's a quick Mod to do what you want. It involves changing exactly three lines!
In index.php, lines 360, 451, and 472 (version 1.2.1 final/standalone) change the part of the line (it's an if statement) that reads:
if ($visibility == '0' || $visibility == (FIRST_USER_CAT + USER_ID) || $visibility == $USER_DATA['group_id']) {
to read:
if ($visibility == '0' || $visibility == (FIRST_USER_CAT + USER_ID) || $visibility == $USER_DATA['group_id'] || $USER_DATA['group_name'] == 'Administrators') {
(For other versions, search for USER_DATA and you'll find the three "if" statements that are concerned with visibility!)
What this does is simply treat the case where the album is private *and* the user is an administrator exactly as if the user was a member of the authorized group.
Enjoy...
[ And feel free to move this over to the "Mod" section if appropriate! ]