<?php

class TemplatePreviewRequestHandler
{
	public static function handleRequest()
	{
		$GLOBALS['Session']->requireAccountLevel('Developer');

		Emergence\Dwoo\Engine::respond(implode('/', Site::$pathStack));
	}
}
<?php

class TemplatePreviewRequestHandler
{
    public static $requiredAccountLevel = 'Developer';
    
    public static function handleRequest()
	{
        if (static::$requiredAccountLevel) {
		    $GLOBALS['Session']->requireAccountLevel(static::$requiredAccountLevel);
        }

		Emergence\Dwoo\Engine::respond(implode('/', Site::$pathStack));
	}
}
Support configuring required account level for template previewing
Support configuring required account level for template previewing
