Bug #2436
closedJ1.6: get_user_group_id not returning top most gid
Description
Anywhere get_user_group_id is used within Joomla 1.6 is not returning the top most GID. This causes for example someone that is in a custom group of Group 1 AND Registered always returns as Registered instead of Group 1 (as seen in database in _users).
Files
Updated by krileon almost 14 years ago
- Subject changed from J1.6: admin usergroup diff in userlist group array hardcoded to 1.5 to J1.6: get_user_group_id not returning top most gid
Updated by krileon almost 14 years ago
- File 2436.patch 2436.patch added
- Status changed from New to Resolved
- Assignee set to beat
- % Done changed from 0 to 100
Updated by beat over 13 years ago
- Status changed from Resolved to Assigned
- Assignee changed from beat to krileon
- % Done changed from 100 to 50
we need to have same keys implemented for all CMS types.
Can you please submit a new patch that is also valid for all joomla 1.0,1.5 and Mambos 4.5 and 4.6 ?
Updated by krileon over 13 years ago
- Status changed from Assigned to Resolved
- Assignee changed from krileon to beat
- % Done changed from 50 to 100
Patch is valid for Mambo and J1.0. Please see below group mappings.
Joomla 1.6
1 Public
2 Registered
3 Author
4 Editor
5 Publisher
6 Manager
7 Administrator
8 Super Users
Joomla 1.5
17 ROOT
28 USERS
29 Public Frontend
18 Registered
19 Author
20 Editor
21 Publisher
30 Public Backend
23 Manager
24 Administrator
25 Super Administrator
Joomla 1.0
17 ROOT
28 USERS
29 Public Frontend
18 Registered
19 Author
20 Editor
21 Publisher
30 Public Backend
23 Manager
24 Administrator
25 Super Administrator
Mambo
17 ROOT
28 USERS
29 Public Frontend
18 Registered
19 Author
20 Editor
21 Publisher
30 Public Backend
23 Manager
24 Administrator
25 Super Administrator
Only Joomla 1.6 (and greater) has a different structure which is covered with if ( checkJversion() >= 2 ) { and the } else { taking care of j1.5, j1.0, and mambo.
Updated by beat over 13 years ago
- Status changed from Resolved to Feedback
- Assignee changed from beat to krileon
- % Done changed from 100 to 90
Patch applied in r1490.
Agree with the fix for the bug.
But don't understand the need for the change in mapGroupNamesToValues() :
Do we have uses of Root, Public and Backend in joomla < 1.6 ?
Updated by beat over 13 years ago
- Status changed from Feedback to Closed
- Assignee changed from krileon to beat
Ah, understood where it is. It is now used in fix of #2437 .
However, in the way it is used to fix #2437, it might fail on joomla 1.6. So the new keys Root, Public and Backend need to be added in joomla < 1.6, but then ignored properly in the output.
r1491 implements that regression fix. And allows to close this bug.