487 | | grouppquota = self.storage.getGroupPQuota(group, printer) |
488 | | # for the printer and all its parents |
489 | | for gpquota in [ grouppquota ] + grouppquota.ParentPrintersGroupPQuota : |
490 | | if gpquota.Exists : |
491 | | action = self.checkGroupPQuota(gpquota) |
492 | | if action == "DENY" : |
493 | | return action |
494 | | elif action == "WARN" : |
495 | | warned = 1 |
| 487 | # No need to check anything if the group is in noquota mode |
| 488 | if group.LimitBy != "noquota" : |
| 489 | grouppquota = self.storage.getGroupPQuota(group, printer) |
| 490 | # for the printer and all its parents |
| 491 | for gpquota in [ grouppquota ] + grouppquota.ParentPrintersGroupPQuota : |
| 492 | if gpquota.Exists : |
| 493 | action = self.checkGroupPQuota(gpquota) |
| 494 | if action == "DENY" : |
| 495 | return action |
| 496 | elif action == "WARN" : |
| 497 | warned = 1 |