mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-04 15:26:43 +02:00
30 lines
609 B
PHP
30 lines
609 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Authorization;
|
|
|
|
use Myth\Auth\Authorization\GroupModel as MythAuthGroupModel;
|
|
|
|
class GroupModel extends MythAuthGroupModel
|
|
{
|
|
/**
|
|
* @return mixed[]
|
|
*/
|
|
public function getContributorRoles(): array
|
|
{
|
|
return $this->select('auth_groups.*')
|
|
->like('name', 'podcast_', 'after')
|
|
->findAll();
|
|
}
|
|
|
|
/**
|
|
* @return mixed[]
|
|
*/
|
|
public function getUserRoles(): array
|
|
{
|
|
return $this->select('auth_groups.*')
|
|
->notLike('name', 'podcast_', 'after')
|
|
->findAll();
|
|
}
|
|
}
|