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

- move and refactor Image.php from Libraries to Entities folder - update some database field names / types - update composer packages
29 lines
583 B
PHP
29 lines
583 B
PHP
<?php
|
|
|
|
namespace App\Authorization;
|
|
|
|
use Myth\Auth\Authorization\GroupModel as MythAuthGroupModel;
|
|
|
|
class GroupModel extends MythAuthGroupModel
|
|
{
|
|
/**
|
|
* @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();
|
|
}
|
|
}
|