Project

General

Profile

Actions

Bug #89939

closed

Enabling/disabling backend users via context menu has no effect

Added by Dmitry Dulepov almost 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2019-12-13
Due date:
% Done:

100%

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

Description

It is not possible to enable or disable a TYPO3 Backend user via context menu.

Technical analysis

Context menu sends the following command to disable backend user: /typo3/index.php?route=%2Frecord%2Fcommit&token=xxx&data[be_users][2][hidden]=1&prErr=1&redirect=%2Ftypo3%2Findex.php%3FM%3Dsystem_BeuserTxBeuser%26moduleToken%3Dyyy

The problem here is data[be_users][2][hidden] part, which is constructed in ContextMenuActions.disableRecord function of EXT:backend/Resources/Public/JavaScript/ContextMenuActions.js

Unlike all other tables, be_users table uses disable field instead of hidden. Thus the call from context menu has no effect.

Interestingly the enable/disable button on the right of the user module send the following command: /typo3/index.php?route=%2Frecord%2Fcommit&token=xxx&prErr=1&uPT=1&redirect=%2Ftypo3%2Findex.php%3FM%3Dsystem_BeuserTxBeuser%26moduleToken%3Dyyy&data%5Bbe_users%5D%5B2%5D%5Bdisable%5D=1

In the List module the enable/disable button sends http://easyweb.ddev.site/typo3/index.php?ajaxID=%2Fajax%2Frecord%2Fprocess&ajaxToken=xxx&data[be_users][2][disable]=0

Actions

Also available in: Atom PDF