first commit
This commit is contained in:
commit
e81864e683
2984 files changed
+267797
No files matched your search
+23
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
namespace In2code\Femanager\ViewHelpers\Condition;
|
||||
|
||||
use In2code\Femanager\Utility\BackendUserUtility;
|
||||
use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper;
|
||||
|
||||
/**
|
||||
* Class IsBackendAdministratorAuthenticationViewHelper
|
||||
*/
|
||||
class IsBackendAdministratorAuthenticationViewHelper extends AbstractViewHelper
|
||||
{
|
||||
/**
|
||||
* Check if a backenduser-administrator is logged in
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function render()
|
||||
{
|
||||
return BackendUserUtility::isAdminAuthentication();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user