Project

General

Profile

Actions

Bug #3540

closed

J2.5: When viewing a user as an administrator that user is considered a moderator

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

Status:
Closed
Priority:
Urgent
Assignee:
Target version:
Start date:
29 May 2012
Due date:
% Done:

100%

Estimated time:
2:00 h

Description

On Joomla 2.5 when viewing a user as an administrator due to the usage of $this->amIaSuperAdmin() in get_group_children_ids it results in calls to the function to return all usergroups when instead it should just return the children of that gid, but the function has no idea this is taking place. Need a more appropriate way to get groups below a group id.

https://www.joomlapolis.com/forum/153-professional-member-support/201293-moderator-menu-not-showing


Files

3540.patch (1.03 KB) 3540.patch krileon, 29 May 2012 16:18

Related issues 1 (0 open1 closed)

Related to CB - Bug #3560: Backend: Update handling of sub-SA to new SA rules of J2.5.5+Closedbeat20 June 2012

Actions
Actions #1

Updated by krileon almost 12 years ago

This was implemented in r1744.

Fixed bug #3246 : J2.5: New child usergroups of parent Public can't be used in CB

So new implementation needs to regression test the above to ensure it still works.

Actions #2

Updated by krileon almost 12 years ago

  • File 3540.patch 3540.patch added
  • Status changed from Assigned to Resolved
  • Assignee changed from krileon to beat
  • % Done changed from 0 to 100

Confirmed path fixes this issue and the issue #3246 resolved. It now checks if the GID is the super administrator usergroup instead of testing if the viewing user is the super administrator usergroup.

Actions #3

Updated by beat almost 12 years ago

  • Status changed from Resolved to Closed
  • Estimated time set to 2:00 h

r1801 fixes this.

Needs tests.

To Test:
Access CB menus and tasks in backend as moderator and as super-admin.

Actions #4

Updated by beat almost 12 years ago

r1822 improves the fix

Actions

Also available in: Atom PDF