Actions
Bug #3443
closedJ1.5: getAuthorisedViewLevelsIds only returns 0
Description
When calling getAuthorisedViewLevelsIds it only every returns 0 on J1.5. This appears due to aid in the Joomla user object always being null. This should not be the case however as it should contain the top most access level of the user.
Current usage (which is correct):
$user =& JFactory::getUser( (int) $user_id );
$level = $user->get( 'aid', 0 );
This appears to be an issue with Joomla it self and perhaps a different method needs to be used to retrieve the users view access level.
Files
Actions
#1
Updated by krileon over 12 years ago
- File 3443.patch 3443.patch added
- File cb.acl.php cb.acl.php added
- Status changed from Assigned to Resolved
- Assignee changed from krileon to beat
- % Done changed from 0 to 100
Updated by beat over 12 years ago
- Status changed from Resolved to Closed
- Estimated time set to 1:00 h
r1798 commits this patch. Thanks Kyle.
To test:
View access levels for CB in J1.5
Updated by beat over 12 years ago
- Status changed from Closed to Assigned
- Assignee changed from beat to krileon
- Priority changed from Urgent to Immediate
- % Done changed from 100 to 0
Re-opening as this patch is most probably incorrect.
Updated by beat over 12 years ago
- Status changed from Assigned to Closed
- % Done changed from 0 to 100
THIS PATCH SHOULD NOT BE APPLIED AS IS.
Implemented a new fix for CB 1.8.1 in r1818 .
Actions