mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-01 05:49:01 +02:00
feat: add breadcrumb in admin area
- add Breadcrumb library and service - update authorizations - add missing routes to avoid 404 links in breadcrumb - add svg_helper globally in base controller - update purgecss config to check .ts files closes #17
This commit is contained in:
parent
ed6e953010
commit
7fb1de2cf3
35 changed files with 397 additions and 82 deletions
|
|
@ -17,8 +17,11 @@ class UserModel extends \Myth\Auth\Models\UserModel
|
|||
|
||||
public function getPodcastContributor($user_id, $podcast_id)
|
||||
{
|
||||
return $this->select('users.*')
|
||||
return $this->select(
|
||||
'users.*, users_podcasts.podcast_id as podcast_id, auth_groups.name as podcast_role'
|
||||
)
|
||||
->join('users_podcasts', 'users_podcasts.user_id = users.id')
|
||||
->join('auth_groups', 'auth_groups.id = users_podcasts.group_id')
|
||||
->where([
|
||||
'users.id' => $user_id,
|
||||
'podcast_id' => $podcast_id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue