Page 1 of 1

Understanding MRole

PostPosted: Fri Sep 03, 2004 7:36 pm
by hema
Hi Red1,

while tracing Compiere, I came across these lines

MRole: get - AD_Role_ID=103, AD_User_ID=101, reload=true
MRole: loadOrgAccess - #2 - reload
MRole: loadTableAccess - #0
MRole: loadTableAccessLevel - #485
MRole: loadColumnAccess - #0
MRole: loadRecordAccess - #0 - Dependent #0
MRole: get - MRole[103,GardenWorld User,UserLevel= O,AD_Client_ID IN(0,11),AD_Org_ID IN(0,11,12)]

I want to know
-what does " loadOrgAccess - #2 - reload", "loadTableAccess - #0" mean?..... that is which data are these values referring to?
-What does it say about the user who has logged in?
-Also what does "AD_Client_ID IN(0,11),AD_Org_ID IN(0,11,12)"?

Many thanks :) ,
Hema

PostPosted: Fri Sep 03, 2004 7:41 pm
by red1
Hema,
That part of the program u refer to is initialising and also preparing the cache so that the system behave faster after that.
When u do a cache reset, the same thing will happen again.

About your second question, the system is making sure that only valid options is happening in the system. All this is important to avoid corruption and security breaches by users.

These are my initial assumptions, if i find out that i m wrong i will update here.

regards
red1

reply for the topic "MRole"

PostPosted: Fri Sep 03, 2004 8:24 pm
by hema
Hi Red1,

thank you for your explanations :D

Also I found out that the line below:
MRole[103,GardenWorld User,UserLevel= O,AD_Client_ID IN(0,11),AD_Org_ID IN(0,11,12)]

stores information for GardenWorld User, AD_Client_ID = 11 is for "GardenWorld" and AD_Org_ID = 12 is for "store". The UserLevel=0 applies to the client and organisation.

When I log in
as "System", the UserLevel = S,
or as "SuperUser" the UserLevel=S;

Wanted to share this info to everybody :)

Thanks again,
Hema