mirror of
https://github.com/simple-login/app.git
synced 2025-02-24 15:53:22 +08:00
do not decrease directory or subdomain quota when user deletes a subdomain/directory
This commit is contained in:
parent
a072fdcd96
commit
63f4d15329
1 changed files with 0 additions and 7 deletions
|
@ -2034,10 +2034,6 @@ class CustomDomain(Base, ModelMixin):
|
|||
if obj.is_sl_subdomain:
|
||||
DeletedSubdomain.create(domain=obj.domain)
|
||||
|
||||
user = obj.user
|
||||
user._subdomain_quota -= 1
|
||||
Session.flush()
|
||||
|
||||
return super(CustomDomain, cls).delete(obj_id)
|
||||
|
||||
@property
|
||||
|
@ -2202,9 +2198,6 @@ class Directory(Base, ModelMixin):
|
|||
DeletedDirectory.create(name=obj.name)
|
||||
cls.filter(cls.id == obj_id).delete()
|
||||
|
||||
user = obj.user
|
||||
user._directory_quota -= 1
|
||||
|
||||
Session.commit()
|
||||
|
||||
def __repr__(self):
|
||||
|
|
Loading…
Reference in a new issue