-
Notifications
You must be signed in to change notification settings - Fork 452
/
group_combination.php
41 lines (34 loc) · 1.12 KB
/
group_combination.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
namespace Concrete\Controller\Dialog\Permissions\Access\Entity\Types;
use Concrete\Controller\Backend\UserInterface;
use \Concrete\Core\Permission\Access\Entity\Type;
use Concrete\Core\Permission\Checker;
use Concrete\Core\Form\Service\Widget\DateTime;
use Concrete\Core\Url\Resolver\Manager\ResolverManagerInterface;
defined('C5_EXECUTE') or die('Access Denied.');
class GroupCombination extends UserInterface
{
/**
* {@inheritdoc}
*
* @see \Concrete\Core\Controller\Controller::$viewPath
*/
protected $viewPath = '/dialogs/permissions/access/entity/types/group_combination';
/**
* {@inheritdoc}
*
* @see \Concrete\Controller\Backend\UserInterface::canAccess()
*/
public function canAccess()
{
$tp = new Checker();
return $tp->canAccessGroupSearch();
}
public function view()
{
$type = Type::getByHandle('group_combination');
$this->set('url', $type->getControllerUrl());
$this->set('resolverManager', $this->app->make(ResolverManagerInterface::class));
$this->set('dt', $this->app->make(DateTime::class));
}
}