<?php
namespace Criterion\Model;

class User extends \Criterion\Model
{
    public $collection = 'users';

}
<?php
namespace Criterion\Model;

class User extends \Criterion\Model
{
    public $collection = 'users';

    public function isAdmin()
    {
        return isset($this->role) && $this->role === 'admin';
    }

}
Add a isAdmin() to user model
Add a isAdmin() to user model
