Either search the bridging board for discussions about admin rights when bridged or hack include/init.inc.php (look for where GALLERY_ADMIN_MODE is defined).
I've looked up the include/init.inc.php but I'm not entirely sure how to add the code for a junior admin.
// Retrieve the "private" album set
if (!GALLERY_ADMIN_MODE && $CONFIG['allow_private_albums']) get_private_album_set();
if (!USER_IS_ADMIN && $CONFIG['offline'] && !strstr($_SERVER["SCRIPT_NAME"],'login')) {
pageheader($lang_errors['offline_title']);
msg_box($lang_errors['offline_title'], $lang_errors['offline_text']);
pagefooter();
exit;
}
// kick user into user_admin_mode (needed to fix "removed user mode for users" when upgrading)
if (USER_ID && !USER_IS_ADMIN && !$USER['am']) { // user is logged in, but is not gallery admin and not in admin mode
$USER['am'] = 1;
pageheader($lang_info, "<META http-equiv=\"refresh\" content=\"1;url=$referer\">");
msg_box($lang_info, 'Sending you to admin mode', $lang_continue, $referer);
pagefooter();
ob_end_flush();
die();
}
The junior admin class is designated in the following way throughout the coding:
"JUNIOR_ADMIN", and I think the user level for the Junior Admin = 3 (with user being 0, Admin =1 and mod = 2).
How exactly would I add that user class into the coding above? I'm not sure how to write it.
Should it be something like:
[quote[if (USER_ID && !USER_IS_ADMIN && JUNIOR_ADMIN !$USER['am']) { // user is logged in, but is not gallery admin and not in admin mode
$USER['am'] = 1;
$USER['am'] = 3;[/quote]
Or something else? If someone could just help me with the correct coding that would be much appreciated.
Thanks in advance.