All pastes #921877 Raw Edit

Something

public text v1 · immutable
#921877 ·published 2008-02-28 12:43 UTC
rendered paste body
		//Autoveröffentlichen
			//Workaround: Administrator und Super administrator können Link sehen auch wenn public frontend
			$is_chef = (strtolower($my->usertype) == 'administrator' || strtolower($my->usertype) == 'super administrator' );
			//Gruppe feststellen
			$group = $acl->getAroGroup( $my->id ); 
			//id holen
			if (isset($group)) {
				$groupid = $group->group_id;
			} else {
				$groupid = '';
			}
		
	$autopubev = evlist_authent::validate_user( $evpubrec, $autopubl, $groupid, $is_chef, $acl );
	if ($autopubev) {
			$_POST['published'] = 1 ;
		} else {
			$_POST['published'] = 0 ;
		}