added table-column ordering (#1086)
This commit is contained in:
@@ -14,11 +14,20 @@ namespace App\Repository\Query;
|
||||
*/
|
||||
class UserQuery extends VisibilityQuery
|
||||
{
|
||||
public const USER_ORDER_ALLOWED = ['id', 'alias', 'username', 'title', 'email'];
|
||||
|
||||
/**
|
||||
* @var string|null
|
||||
*/
|
||||
protected $role;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->setDefaults([
|
||||
'orderBy' => 'username',
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user