245
249
if '.reseller_admin' in user_groups and \
246
250
account != self.reseller_prefix and \
247
251
account[len(self.reseller_prefix)] != '.':
249
254
if account in user_groups and \
250
255
(req.method not in ('DELETE', 'PUT') or container):
251
256
# If the user is admin for the account and is not trying to do an
252
257
# account DELETE or PUT...
254
267
referrers, groups = parse_acl(getattr(req, 'acl', None))
255
268
if referrer_allowed(req.referer, referrers):