https://www.icyphoenix.com/viewtopic.php?f=26&t=1976&p=23498#p23498
-----------------------------------
Fusione
Fri 18 Jan, 2008 19:42

Re: Allowing Reg. Users To Create "Sub-Categories"
-----------------------------------
Hi,

I would like to allow a certain user group to create categories. If i understand correctly now only admins can create them throught the album_admin_cat.php?

Should i change something here?

[code linenumbers=false]
$album_user_id = ALBUM_PUBLIC_GALLERY;

if (!$userdata['session_logged_in'])
{
	redirect(append_sid(album_append_uid(LOGIN_MG . "?redirect=album_admin_cat.$phpEx")));
}
else
{
	if ( ($userdata['user_level'] != ADMIN) && ($userdata['user_level'] != MOD) )
	//if ($userdata['user_level'] != ADMIN)
	{
		message_die(GENERAL_ERROR, $lang['Not_Authorised']);
	}
}[/code]

Thank youfor help!


