mirror of
https://code.castopod.org/adaures/castopod
synced 2025-06-05 08:52:00 +00:00

- add AuthSeeder to bootstrap authorization data and remove UserSeeder - create a superadmin group having all authorizations - refactor routes and controller methods to separate get and post requests - refactor admin views with a title section in layout - add contributors section to podcasts to manage contributions (add, edit roles and remove) closes #3, #18
20 lines
399 B
PHP
20 lines
399 B
PHP
<?php
|
|
/**
|
|
* @copyright 2020 Podlibre
|
|
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
|
* @link https://castopod.org/
|
|
*/
|
|
|
|
/**
|
|
* Gets the permission name by concatenating the context and action
|
|
*
|
|
* @param string $context
|
|
* @param string $action
|
|
*
|
|
* @return string permission name
|
|
*/
|
|
function get_permission($context, $action)
|
|
{
|
|
return $context . '-' . $action;
|
|
}
|