Check against sucurity group rules in all groups while checking for quota

Change-Id: If654d928dfecdbc4ab3464777cb9e4cba17b7333
Closes-Bug: 1365463
Merge "Check against sucurity group rules in all groups while checking for quota"