35 lines
792 B
PHP
35 lines
792 B
PHP
<?php namespace Backend\Controllers;
|
|
|
|
use BackendMenu;
|
|
use BackendAuth;
|
|
use Backend\Classes\Controller;
|
|
use System\Classes\SettingsManager;
|
|
|
|
/**
|
|
* Backend user groups controller
|
|
*
|
|
* @package october\backend
|
|
* @author Alexey Bobkov, Samuel Georges
|
|
*
|
|
*/
|
|
class UserGroups extends Controller
|
|
{
|
|
public $implement = [
|
|
'Backend.Behaviors.FormController',
|
|
'Backend.Behaviors.ListController'
|
|
];
|
|
|
|
public $formConfig = 'config_form.yaml';
|
|
public $listConfig = 'config_list.yaml';
|
|
|
|
public $requiredPermissions = ['backend.manage_users'];
|
|
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
|
|
BackendMenu::setContext('October.System', 'system', 'users');
|
|
SettingsManager::setContext('October.System', 'administrators');
|
|
}
|
|
}
|