mirror of
				https://github.com/webmasterskaya/joomla-oauth-server.git
				synced 2025-10-31 20:03:21 +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); | 
