object	user;
User	user;
nomask int authorize(string file, int type){	object	user;	string	name;	int		granted;	user = this_user();	name = user->query_name();	/* If user is not authenticated and we don't allow anonymous. Deny! */	if(name == HTTP_ANON_USER && 	   !(user->get_application()->get_allow_anonymous())) {		granted = FALSE;	} else {		granted = accessd->access(name, file, type);		/* type 0 means 'no access' */		if(type == 0		   || (name == HTTP_ANON_USER && sscanf(file, "%*ssecure%*s") != 2		       && type == READ_ACCESS) ) {			/* Override accessd's decision */			granted = TRUE;		}	}#if 1	SYSLOG( name + " [" + ACCTYPES[type]  + " " + 			(granted ? "granted" : "denied") + "]: " + file + "\n");#endif	return granted;}