mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-09-08 19:59:20 +02:00
- create Admin, Analytics, Auth, Fediverse and Install modules in the root modules/ folder - rename ActivityPub to Fediverse
31 lines
618 B
PHP
31 lines
618 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Modules\Auth\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();
|
|
}
|
|
}
|