IDEMPIERE-111 Admin role can delete System records !!!

http://jira.idempiere.com/browse/IDEMPIERE-111
This commit is contained in:
Carlos Ruiz 2012-01-06 22:27:43 -05:00
parent c883af25a5
commit 2551e17141
1 changed files with 9 additions and 0 deletions

View File

@ -2876,6 +2876,15 @@ public abstract class PO
} // processed
} // force
// Carlos Ruiz - globalqss - IDEMPIERE-111
// Check if the role has access to this client
if (!MRole.getDefault().isClientAccess(getAD_Client_ID(), true))
{
log.warning("You cannot delete this record, role doesn't have access");
log.saveError("AccessCannotDelete", "", false);
return false;
}
Trx localTrx = null;
boolean success = false;
try