Bug #20015
closedOld check for workspace access if owner in class.t3lib_userauthgroup.php
0%
Description
After changing the field "owner" to use users and groups in a recent TYPO3 update, the access check gets a false return.
In the class "t3lib_userauthgroup", function "checkWorkspace()" in line 1479:
Old:
// Checking if the guy is admin:
if (t3lib_div::inList($wsRec['adminusers'], $this->user['uid'])) {
return array_merge($wsRec, array('_ACCESS' => 'owner'));
}
Should be:
// Checking if the guy is admin:
if (t3lib_div::inList($wsRec['adminusers'],'be_users_'.$this->user['uid'])) {
return array_merge($wsRec, array('_ACCESS' => 'owner'));
}
// Checking if he is admin through a user group of his:
foreach($this->userGroupsUID as $groupUid) {
if (t3lib_div::inList($wsRec['adminusers'],'be_groups_'.$groupUid)) {
return array_merge($wsRec, array('_ACCESS' => 'owner'));
}
}
(issue imported from #M10434)
Updated by Michael Klapper over 13 years ago
- Status changed from New to Closed
- Target version deleted (
0)
Already applied to the core (4.5).
Updated by Michael Stucki almost 11 years ago
- Project changed from 624 to TYPO3 Core
- Category changed from Workspaces to Workspaces