mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-09-03 01:17:19 +02: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();
|
|
}
|
|
}
|