Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
Elxis 5.5 Calypso supports 2 factor authentication login with e-mail or SMS.
Home
Help
Login
Register
Elxis CMS Forum
»
Support
»
Administration
»
Tree view of groups
« previous
next »
Print
Pages: [
1
]
Author
Topic: Tree view of groups (Read 6582 times)
epaz
Newbie
Posts: 29
Re-inventing the wheel may lead to a round one!
Tree view of groups
«
on:
March 04, 2008, 12:21:26 »
I have entered some new groups in my local installation (groups.png) using the "Access Manager" screen. In the "Users" screen we have the ability to assign one group to each user and the hierarchy tree view is correct (list_develop.png).
I have exported these records from my local database and I have imported them in the official database of my site. The hierarchy tree view in the "Users" screen is a mess (list_official.png) but in the "Access Manager" everything looks fine (groups.png).
What is the problem? Comparing the data in the elx_core_acl_aro_groups table I can see that the group_id, parent_id, name fields have exactly the same values in both databases. The other 2 fields (lft & rgt) differ. Is this a problem? Can anyone help me understand the way the "thing" works. If I manually change these values what will happen? Are there any logical links to these fields in other tables?
Please advise....
[old attachment deleted by admin]
Logged
datahell
Elxis Team
Hero Member
Posts: 10356
Re: Tree view of groups
«
Reply #1 on:
March 04, 2008, 19:52:04 »
elx_core_acl_aro_groups
"lft" and "rgt" columns are the most important ones as they show you how you "travel" inside the hierarchy tree and the parent groups.
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
epaz
Newbie
Posts: 29
Re-inventing the wheel may lead to a round one!
Re: Tree view of groups
«
Reply #2 on:
March 05, 2008, 10:20:42 »
Can you explain a little further? What is the meaning of these names?
Logged
datahell
Elxis Team
Hero Member
Posts: 10356
Re: Tree view of groups
«
Reply #3 on:
March 05, 2008, 13:07:12 »
I created a graphical representation of the standard elxis groups and the hierarchy tree. The group IDs are just numbers. The important parameters are the lft and rgt values as they show you group parents (each group strength). For example the "Registered" group has lft= 4 and rgt=11. This means that is contained by all groups with lft, rgt values between 4 and 11, so: Author(5,10), Editor (6,9) and Publisher(7,8). These groups are "stronger" (have more privileges) than the "Registered" group. The hierarchy tree is generated by "traveling" through the lft and rgt values in ascending order. Elxis updates automatically lft and rgt values when ever you edit/add/delete a group.
[old attachment deleted by admin]
«
Last Edit: March 05, 2008, 13:18:48 by datahell
»
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
epaz
Newbie
Posts: 29
Re-inventing the wheel may lead to a round one!
Re: Tree view of groups
«
Reply #4 on:
March 05, 2008, 13:24:28 »
Just fine. Life will be easier when recursive queries will be supported in mySQL. Queries in the form of CONNECT BY PRIOR if speaking in Oracle terms. As far as I know such queries are supported by Oracle, SQL Server 2005 and Firebird 2.1
Thanx
Logged
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Support
»
Administration
»
Tree view of groups