Bug #3310
closed
Permissions check of single user while administrator fails
Added by krileon over 12 years ago.
Updated over 12 years ago.
Start date:
28 February 2012
Description
The permissions check in get_users_permission fails in part due to $user_id not being defined and the gids check appears to also fail. Issue isn't present if user performing the action is a super user.
Files
- Subject changed from get_users_permission checks if user_id is self when not an array and var isn't defined to Permissions check of single user while administrator fails
- Status changed from Resolved to Assigned
- Assignee changed from beat to krileon
- % Done changed from 100 to 50
- File deleted (
cb.acl.php.patch)
Resolved permissions issue, but then the below error becomes apparent.
Warning: array_diff() [function.array-diff]: Argument #1 is not an array in administrator/components/com_comprofiler/library/cb/cb.tables.php on line 151
It's due to $oldUserComplete->gids being null instead of an array for a new user.
$oldUserComplete is established in saveSafely, but no check is made to ensure gids is an array. Implemented changing of gids from null to array to prevent errors when directly establishing a new moscomprofilerUser then directly calling saveSafely.
Added pre-patched CB 1.8 Stable files for those needing immediate resolution (and further testing of patches). Those wanting to test simply copy, paste, and replace to the following location.
administrator/components/com_comprofiler/library/cb/
- Target version set to CB 1.8.1
- Priority changed from Normal to Urgent
- Status changed from Resolved to Closed
- Estimated time set to 5:00 h
r1803 commits this: testing required.
To Test:
- Try performing CB tasks in backend under various permissions settings.
Also available in: Atom
PDF