Vergleich inc/functions_modcp.php - 1.4.0 - 1.4.1

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * $Id: functions_modcp.php 4024 2008-07-18 02:37:49Z Tikitiki $

 * $Id: functions_modcp.php 4111 2008-08-13 06:14:12Z Tikitiki $

 */

/**

 */

/**

Zeile 23Zeile 23
	$user_permissions = user_permissions($uid);

// Current user is only a local moderator or use with ModCP permissions, cannot manage super mods or admins

	$user_permissions = user_permissions($uid);

// Current user is only a local moderator or use with ModCP permissions, cannot manage super mods or admins

	if($mybb->usergroup['issupermod'] == 0 && ($user_permissions['issupermod'] == 1 || $user_permissions['canadmincp'] == 1))

	if($mybb->usergroup['issupermod'] == 0 && ($user_permissions['issupermod'] == 1 || $user_permissions['cancp'] == 1))

	{
return false;
}
// Current user is a super mod or is an administrator

	{
return false;
}
// Current user is a super mod or is an administrator

	else if($mybb->usergroup['issupermod'] == 1 && $user_permissions['canadmincp'] == 1 || (is_super_admin($uid) && !is_super_admin($mybb->user['uid'])))

	else if($mybb->usergroup['issupermod'] == 1 && $user_permissions['cancp'] == 1 || (is_super_admin($uid) && !is_super_admin($mybb->user['uid'])))

	{
return false;
}

	{
return false;
}