2020-08-04 13:25:22 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Authorization;
|
2020-07-31 18:05:10 +02:00
|
|
|
|
|
|
|
class GroupModel extends \Myth\Auth\Authorization\GroupModel
|
|
|
|
{
|
|
|
|
public function getContributorRoles()
|
|
|
|
{
|
|
|
|
return $this->select('auth_groups.*')
|
|
|
|
->like('name', 'podcast_', 'after')
|
|
|
|
->findAll();
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getUserRoles()
|
|
|
|
{
|
|
|
|
return $this->select('auth_groups.*')
|
|
|
|
->notLike('name', 'podcast_', 'after')
|
|
|
|
->findAll();
|
|
|
|
}
|
|
|
|
}
|