2014-05-14 23:24:20 +10:00
|
|
|
<?php namespace Backend\Controllers;
|
|
|
|
|
|
|
|
use BackendMenu;
|
|
|
|
use BackendAuth;
|
|
|
|
use Backend\Classes\Controller;
|
2016-02-22 21:52:23 -08:00
|
|
|
use System\Classes\SettingsManager;
|
2014-05-14 23:24:20 +10:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Backend user groups controller
|
|
|
|
*
|
|
|
|
* @package october\backend
|
|
|
|
* @author Alexey Bobkov, Samuel Georges
|
|
|
|
*
|
|
|
|
*/
|
2014-12-16 12:39:38 +11:00
|
|
|
class UserGroups extends Controller
|
2014-05-14 23:24:20 +10:00
|
|
|
{
|
|
|
|
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');
|
2016-02-22 21:52:23 -08:00
|
|
|
SettingsManager::setContext('October.System', 'administrators');
|
2014-05-14 23:24:20 +10:00
|
|
|
}
|
2014-10-10 23:26:57 +02:00
|
|
|
}
|