Bug #38448

Condition adminUser in pageTSconfig not working

Added by Arno Dudek over 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
Start date:
2012-06-28
Due date:
% Done:

0%

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

Description

Using adminUser in userTSconfig like

[adminUser = 1]
options.pageTree.showPageIdWithTitle = 1
[end]

Condition not working if I'm logged in as admin.

Looking in t3lib/matchcondition/class.t3lib_matchcondition_backend.php $this->isUserLoggedIn() returns false cause $GLOBALS['BE_USER'] is empty.

Can sombody confirm this?

#1

Updated by Helmut Hummel almost 9 years ago

  • Target version changed from 6.0.0-alpha3 to 6.0.1
#2

Updated by Wouter Wolters almost 7 years ago

  • Status changed from New to Needs Feedback
  • Is Regression set to No

Hi,

as this issue is very old. Does the problem still exists within newer versions of TYPO3 CMS (6.2.9)?

#3

Updated by Arno Dudek almost 7 years ago

I found or there is an alternate for the same behaviour:

[globalVar = BE_USER|user|admin = 0]

I'm not shure if the condition adminUser is still an option or if it's obsolete.

#4

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Needs Feedback to Closed

As far as I can see from the TSCONFIG documentation, [adminuser] is not marked as obsolele/deprecated condition

Test done with TYPO3 CMS 6.2.12
1. Create a group:
- name: "pincopalli"
- tab options > tsconfig:

[adminUser = 1]
   options.pageTree.showPageIdWithTitle = 1
[global]

2. assign pages to "pincopalli" group
3. create the users typo3admin (admin) and tizioqualunque (not admin)
4. assign both to group "pincopalli"

RESULT:
"typo3admin" sees the Id next to the title, while "tizioqualunque" not.

Also available in: Atom PDF