Newer
Older

Yassine Doghri
committed
<?php
namespace App\Authorization;

Yassine Doghri
committed
class GroupModel extends \Myth\Auth\Authorization\GroupModel
{

Yassine Doghri
committed
/**
* @return mixed[]
*/
public function getContributorRoles(): array

Yassine Doghri
committed
{
return $this->select('auth_groups.*')
->like('name', 'podcast_', 'after')
->findAll();
}

Yassine Doghri
committed
/**
* @return mixed[]
*/
public function getUserRoles(): array

Yassine Doghri
committed
{
return $this->select('auth_groups.*')
->notLike('name', 'podcast_', 'after')
->findAll();
}
}