mirror of
https://code.castopod.org/adaures/castopod
synced 2025-07-30 00:56:16 +00:00

- update myth-auth and codeigniter to latest develop changes - improve permission check: remove all dynamic permissions per podcast and overwrite myth-auth services and permission filter - remove unnecessary code because of myth-auth upgrade - refactor some controller code for better clarity - add remaining seeders in docs closes #19, #20
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();
|
|
}
|
|
}
|