ORIENT/modules/backend/controllers/UserGroups.php

50 lines
1.1 KiB
PHP
Raw Normal View History

2014-05-14 13:24:20 +00:00
<?php namespace Backend\Controllers;
use BackendMenu;
use Backend\Classes\Controller;
2016-02-23 05:52:23 +00:00
use System\Classes\SettingsManager;
2014-05-14 13:24:20 +00:00
/**
* Backend user groups controller
*
* @package october\backend
* @author Alexey Bobkov, Samuel Georges
*
*/
class UserGroups extends Controller
2014-05-14 13:24:20 +00:00
{
2017-07-27 07:35:14 +00:00
/**
* @var array Extensions implemented by this controller.
*/
2014-05-14 13:24:20 +00:00
public $implement = [
2017-07-27 07:35:14 +00:00
\Backend\Behaviors\FormController::class,
\Backend\Behaviors\ListController::class
2014-05-14 13:24:20 +00:00
];
2017-07-27 07:35:14 +00:00
/**
* @var array `FormController` configuration.
*/
2014-05-14 13:24:20 +00:00
public $formConfig = 'config_form.yaml';
2017-07-27 07:35:14 +00:00
/**
* @var array `ListController` configuration.
*/
2014-05-14 13:24:20 +00:00
public $listConfig = 'config_list.yaml';
2017-07-27 07:35:14 +00:00
/**
* @var array Permissions required to view this page.
*/
2014-05-14 13:24:20 +00:00
public $requiredPermissions = ['backend.manage_users'];
2017-07-27 07:35:14 +00:00
/**
* Constructor.
*/
2014-05-14 13:24:20 +00:00
public function __construct()
{
parent::__construct();
BackendMenu::setContext('October.System', 'system', 'users');
2016-02-23 05:52:23 +00:00
SettingsManager::setContext('October.System', 'administrators');
2014-05-14 13:24:20 +00:00
}
2014-10-10 21:26:57 +00:00
}