Newer
Older

Yassine Doghri
committed
<?php
namespace App\Authorization;

Yassine Doghri
committed
use Myth\Auth\Authorization\GroupModel as MythAuthGroupModel;
class GroupModel extends MythAuthGroupModel

Yassine Doghri
committed
{

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();
}
}