Issue Bug Rejected

#106029$GLOBALS['BE_USER'] is not available in Configuration/TCA/Overrides/tt_content.php

Michael Perlbach 01/30/25, 12:54 updated 01/30/25, 13:47

Description

As it seems $GLOBALS[‘BE_USER’] does generally not seem to be available TCA definitions.

It rather should be – as it provides a bunch more flexibility when it comes to adjusting backend content element access.

But once again: Maybe I overlooked something here and it’s already possible. But I did not find anything in the documentation so far.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 4

  1. Garvin Hicking commented and changed status New Rejected <span data-processor="relativetime" data-value="2025-01-30T13:20:54+00:00" > 01/30/25, 13:20 </span>

    TCA is meant to be stateless; you cannot use BE User conditions there, because it needs to be cached without this context.

    You need to use user / page TSconfig or TCA Events to influence the cached representation. Or you can use proc funcs for BE user related evaluations, or custom displayConds.

    Hope you understand that I need to close this because TCA needs to remain like this conceptually.

  2. Michael Perlbach commented <span data-processor="relativetime" data-value="2025-01-30T13:37:44+00:00" > 01/30/25, 13:37 </span>

    I understand.

    Is there any other way to have influence on the list of content elements displayed in the backend?
    Maybe some hook?

  3. Garvin Hicking commented <span data-processor="relativetime" data-value="2025-01-30T13:44:08+00:00" > 01/30/25, 13:44 </span>

    PSR events are a possibility.
    The issue tracker here is not the best way to discuss options. Please see to join the slack community or talk.typo3.org to get feedback on solutions.