[eluser]OverZealous[/eluser]
The example provided by DMZ is just a simple way to handle authentication - it doesn't provide any sort of authorization or framework. There's reason another auth framework couldn't be integrated, but it's not part of DMZ.
@Wazzu
For future reference, the "correct" way to order by a related field, which avoids table ambiguities, is:
Code:
$object->order_by_related('model', 'field');
This will also handle joining the related table if necessary. It also works with deep relationships.