Project

General

Profile

Actions

Bug #91824

closed

Deprecation of BackendUserAuthentication modAccess() function inconsistent

Added by Sybille Peters almost 4 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Authentication
Target version:
-
Start date:
2020-07-19
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Deprecation in TYPO3 9 states:

The second argument of method modAccess() has been marked as deprecated, as the method should not trigger runtime exceptions anymore.

So, it says the function should not trigger runtime messages but since TYPO3 10.4 that is the default behaviour: to trigger the exceptions (without the parameter which is now removed).

In 9, it is not possible to get this behaviour (throws an exception) without triggering a deprecation.

Also, I am not sure if the phpdoc comment is consistent with the code. (in master):

Will return FALSE if the module name is not even found in $TBE_MODULES

If not isModuleSetInTBE_MODULES(), the function will throw an exception as well.

Actions

Also available in: Atom PDF