Commit fbb4b194 authored by Thomas Löffler's avatar Thomas Löffler
Browse files

Use integer for result codes, fe_user for removed loginUser and correct PIDs for login

parent 26d9ef76
Pipeline #9557 passed with stages
in 7 minutes and 59 seconds
......@@ -394,10 +394,10 @@ class TerSoapV1Handler
/**
* Returns the structure of th simple SOAP result.
*
* @param string $resultCode
* @param int $resultCode
* @return array
*/
protected function formatAsSimpleResult(string $resultCode): array
protected function formatAsSimpleResult(int $resultCode): array
{
return [
'resultCode' => $resultCode,
......
......@@ -74,7 +74,7 @@ class Role implements \TYPO3\CMS\Core\SingletonInterface
*/
public function hasRole($role)
{
if (empty($role) || !isset($GLOBALS['TSFE']) || !$GLOBALS['TSFE']->loginUser) {
if (empty($role) || !isset($GLOBALS['TSFE']) || !$GLOBALS['TSFE']->fe_user) {
return false;
}
if (\TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($role)) {
......
......@@ -79,8 +79,8 @@ return [
'useConfigurationTrackRecordsOutsideSiteroot' => '1',
],
't3olayout' => [
'loginFormPid' => '',
'loginPid' => '',
'loginFormPid' => '12',
'loginPid' => '8',
],
'ter' => [
'repositoryDir' => '/var/www/html/private/fileadmin/ter/',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment