Ich blick grad nicht so richtig durch...
Code: Alles auswählen
if ( !in_array(1, $users->get_groups_id()) ) // user is not in Administrators group
{
$admin_perm_ok = false;
foreach ($options['admin_groups'] as $adm_group)
if ( in_array( $adm_group, $users->get_groups_id() ) )
$admin_perm_ok = true;
if ( $admin_perm_ok == false )
{
CAT_Object::json_error($backend->lang()->translate('You do not have the permission add a page here. agaga'));
exit();
}