Project

General

Profile

Actions

Bug #3443

closed

J1.5: getAuthorisedViewLevelsIds only returns 0

Added by krileon about 12 years ago. Updated almost 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

Updated by krileon about 12 years ago

Actions #2

Updated by krileon almost 12 years ago

  • Priority changed from Normal to Urgent
Actions #3

Updated by beat almost 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

Actions #4

Updated by beat almost 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.

Actions #5

Updated by beat almost 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

Also available in: Atom PDF