mirror of
https://github.com/webmasterskaya/joomla-oauth-server.git
synced 2024-11-28 05:45:51 +03:00
27 lines
742 B
PHP
27 lines
742 B
PHP
|
<?php
|
||
|
|
||
|
|
||
|
use Joomla\CMS\Layout\LayoutHelper;
|
||
|
|
||
|
\defined('_JEXEC') or die;
|
||
|
|
||
|
/**
|
||
|
* @var \Webmasterskaya\Component\OauthServer\Administrator\View\Clients\HtmlView $this
|
||
|
*/
|
||
|
|
||
|
$displayData = [
|
||
|
'textPrefix' => 'COM_OAUTHSERVER_ORDERS',
|
||
|
'icon' => 'icon-copy',
|
||
|
];
|
||
|
|
||
|
$user = $this->getCurrentUser();
|
||
|
|
||
|
if ($user->authorise('core.create', 'com_oauthserver')
|
||
|
|| count($user->getAuthorisedCategories('com_oauthserver', 'core.create')) > 0
|
||
|
|| $user->authorise('product.create', 'com_oauthserver')
|
||
|
|| count($user->getAuthorisedCategories('com_oauthserver', 'client.create')) > 0
|
||
|
) {
|
||
|
$displayData['createURL'] = 'index.php?option=com_oauthserver&task=client.add';
|
||
|
}
|
||
|
|
||
|
echo LayoutHelper::render('joomla.content.emptystate', $displayData);
|