IAMService does not need CallingContext information

This commit is contained in:
Prachi Damle 2014-01-14 16:34:47 -08:00
parent 6c1849f4bf
commit cc66d03f81

View File

@ -449,7 +449,6 @@ public class IAMServiceImpl extends ManagerBase implements IAMService, Manager {
@DB
@Override
public AclGroup removeAclPoliciesFromGroup(final List<Long> policyIds, final Long groupId) {
final Account caller = CallContext.current().getCallingAccount();
// get the Acl Group entity
AclGroup group = _aclGroupDao.findById(groupId);
if (group == null) {
@ -548,7 +547,6 @@ public class IAMServiceImpl extends ManagerBase implements IAMService, Manager {
@Override
public AclPolicy addAclPermissionToAclPolicy(long aclPolicyId, String entityType, String scope, Long scopeId,
String action, String accessType, Permission perm) {
Account caller = CallContext.current().getCallingAccount();
// get the Acl Policy entity
AclPolicy policy = _aclPolicyDao.findById(aclPolicyId);
if (policy == null) {