Logo
Explore Help
Register Sign In
saulteafarmer/castopod
1
0
Fork 0
You've already forked castopod
mirror of https://code.castopod.org/adaures/castopod synced 2025-05-11 16:55:46 +00:00
Code Issues Packages Projects Releases Wiki Activity
castopod/app/Authorization/GroupModel.php

21 lines
445 B
PHP
Raw Normal View History

refactor: add php_codesniffer to define castopod's coding style based on psr-1 - 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
2020-08-04 11:25:22 +00:00
<?php
namespace App\Authorization;
refactor(auth): change contributor's role logic to have it included in the users_podcasts table - 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
2020-07-31 16:05:10 +00:00
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();
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.1 Page: 81ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API