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

- add .editorconfig file - format all files to comply with castopod's coding style - switch parsedown dependency with commonmark library to better follow commonmark spec for markdown - add prettier command to format all project files at once closes #16
21 lines
445 B
PHP
21 lines
445 B
PHP
<?php
|
|
|
|
namespace App\Authorization;
|
|
|
|
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();
|
|
}
|
|
}
|