Implement daily upload limit (#956)
authorFelix Ableitner <me@nutomic.com>
Tue, 28 Aug 2018 07:01:35 +0000 (02:01 -0500)
committerChocobozzz <me@florianbigard.com>
Tue, 28 Aug 2018 07:01:35 +0000 (09:01 +0200)
commitbee0abffff73804d816b90c7fd599e0a51c09d61
treefae6d58637f9c63a3800090277f8e130b43442dd
parentc907c2fa3fd7c0a741117a0204d0ebca675124bd
Implement daily upload limit (#956)

* Implement daily upload limit (ref #652)

* remove duplicate code

* review fixes

* fix tests?

* whitespace fixes, finish leftover todo

* fix tests

* added some new tests

* use different config value for tests

* remove todo
32 files changed:
client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html
client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts
client/src/app/+admin/users/user-edit/user-edit.component.html
client/src/app/+admin/users/user-edit/user-edit.ts
client/src/app/+admin/users/user-edit/user-update.component.ts
client/src/app/core/server/server.service.ts
client/src/app/shared/forms/form-validators/user-validators.service.ts
client/src/app/shared/users/user.model.ts
client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts
config/default.yaml
config/production.yaml.example
server/controllers/api/config.ts
server/controllers/api/users/index.ts
server/controllers/api/users/me.ts
server/helpers/custom-validators/users.ts
server/initializers/checker.ts
server/initializers/constants.ts
server/initializers/installer.ts
server/initializers/migrations/0260-upload_quota_daily.ts [new file with mode: 0644]
server/middlewares/validators/users.ts
server/models/account/user.ts
server/tests/api/check-params/config.ts
server/tests/api/check-params/users.ts
server/tests/api/server/config.ts
server/tests/utils/server/config.ts
server/tests/utils/users/users.ts
shared/models/server/custom-config.model.ts
shared/models/server/server-config.model.ts
shared/models/users/user-create.model.ts
shared/models/users/user-update.model.ts
shared/models/users/user-video-quota.model.ts
shared/models/users/user.model.ts