1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-03 16:10:26 +00:00

[dir view] check quota for fileupload

This commit is contained in:
llj
2016-09-19 18:24:28 +08:00
parent 7ecf62d970
commit ada3365e15
4 changed files with 11 additions and 0 deletions

View File

@@ -219,6 +219,9 @@ define([
if (!dir.user_perm || dir.user_perm != 'rw') {
return;
}
if (dir.no_quota) {
return;
}
var $popup = this.fileUploadView.$el;
@@ -434,6 +437,7 @@ define([
this.$dir_op_bar.html($.trim(this.dir_op_bar_template({
user_perm: dir.user_perm,
no_quota: dir.no_quota,
encrypted: dir.encrypted,
mode: this.view_mode,
path: dir.path,