BF [ 1984193 ] All records are readonly if IsAccessAllOrgs

This commit is contained in:
teo_sarca 2008-06-04 17:34:17 +00:00
parent 0469ad4ee8
commit f3a58107b3
1 changed files with 7 additions and 0 deletions

View File

@ -1024,6 +1024,13 @@ public final class MRole extends X_AD_Role
{
if (AD_Client_ID == 0 && !rw) // can always read System
return true;
//
// Check Access All Orgs:
if (isAccessAllOrgs()) {
// User has access to given AD_Client_ID if the role is defined on that AD_Client_ID
return getAD_Client_ID() == AD_Client_ID;
}
//
loadOrgAccess(false);
// Positive List
for (int i = 0; i < m_orgAccess.length; i++)