diff --git a/client/src/app/+videos/+video-edit/video-add.component.html b/client/src/app/+videos/+video-edit/video-add.component.html index 460ee3f5ebb..14d41f95bce 100644 --- a/client/src/app/+videos/+video-edit/video-add.component.html +++ b/client/src/app/+videos/+video-edit/video-add.component.html @@ -1,4 +1,4 @@ -
+
Sorry, the upload feature is disabled for your account. If you want to add videos, an admin must unlock your quota.
Read instance rules for help @@ -6,7 +6,7 @@ defeated mascot
-
+
We recommend you to not use the root user to publish your videos, since it's the super-admin account of your instance.
diff --git a/client/src/app/core/users/user.model.ts b/client/src/app/core/users/user.model.ts index 5a6cdd62101..332227cb05f 100644 --- a/client/src/app/core/users/user.model.ts +++ b/client/src/app/core/users/user.model.ts @@ -150,14 +150,12 @@ export class User implements UserServerModel { this.account.updateAvatar(newAccountAvatar) } - canUpload (): boolean { - if (this.videoQuota === 0 || this.videoQuotaDaily === 0) return false - - return true + isUploadDisabled (): boolean { + return (this.videoQuota === 0 || this.videoQuotaDaily === 0) } canSeeVideosLink (): boolean { - if (this.canUpload()) { + if (!this.isUploadDisabled()) { return true }