Project

General

Profile

Actions

Bug #3443

closed

J1.5: getAuthorisedViewLevelsIds only returns 0

Added by krileon over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Immediate
Assignee:
Target version:
Start date:
16 April 2012
Due date:
% Done:

100%

Estimated time:
1:00 h

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

3443.patch (847 Bytes) 3443.patch krileon, 16 April 2012 16:22
cb.acl.php (36 KB) cb.acl.php Pre-Patched CB 1.8 File krileon, 16 April 2012 16:22
Actions

Also available in: Atom PDF