mirror of
https://code.castopod.org/adaures/castopod
synced 2025-05-14 02:05:47 +00:00

- update CI process to include quality stage (tests + code review) - add captainhook to install git pre-commit & pre-push hooks - remove .devcontainer Dockerfile to use project's docker-compose services: all services can now be started automatically using vscode - update docs/setup-development.md
27 lines
537 B
PHP
27 lines
537 B
PHP
<?php
|
|
|
|
namespace App\Authorization;
|
|
|
|
class GroupModel extends \Myth\Auth\Authorization\GroupModel
|
|
{
|
|
/**
|
|
* @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();
|
|
}
|
|
}
|