Project

General

Profile

Actions

Bug #20015

closed

Old check for workspace access if owner in class.t3lib_userauthgroup.php

Added by Thomas Loeffler about 15 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Workspaces
Target version:
-
Start date:
2009-02-13
Due date:
% Done:

0%

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

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)

Actions #1

Updated by Michael Klapper over 12 years ago

  • Status changed from New to Closed
  • Target version deleted (0)

Already applied to the core (4.5).

Actions #2

Updated by Michael Stucki over 10 years ago

  • Category set to Workspaces
Actions #3

Updated by Michael Stucki over 10 years ago

  • Project changed from 624 to TYPO3 Core
  • Category changed from Workspaces to Workspaces
Actions

Also available in: Atom PDF