Vergleich admin/modules/user/admin_permissions.php - 1.8.17 - 1.8.19

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 122Zeile 122
	{
foreach($mybb->input['permissions'] as $module => $actions)
{

	{
foreach($mybb->input['permissions'] as $module => $actions)
{

			$no_access = 0;
foreach($actions as $action => $access)

			if(is_array($actions))


			{

			{

				if($access == 0)


				$no_access = 0;
foreach($actions as $action => $access)

				{

				{

					++$no_access;









					if($access == 0)
{
++$no_access;
}
}
// User can't access any actions in this module - just disallow it completely
if($no_access == count($actions))
{
unset($mybb->input['permissions'][$module]);

				}

				}

			}
// User can't access any actions in this module - just disallow it completely
if($no_access == count($actions))
{
unset($mybb->input['permissions'][$module]);

 
			}
}


			}
}