mirror of
https://code.castopod.org/adaures/castopod
synced 2025-05-13 09:45:47 +00:00
19 lines
444 B
PHP
19 lines
444 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();
|
||
|
}
|
||
|
}
|