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)