mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 15:09:14 +00:00
[dir view] check quota for fileupload
This commit is contained in:
@@ -20,6 +20,7 @@ define([
|
||||
parse: function (data) {
|
||||
this.repo_name = data.repo_name;
|
||||
this.user_perm = data.user_perm;
|
||||
this.no_quota = data.no_quota;
|
||||
this.encrypted = data.encrypted;
|
||||
this.is_repo_owner = data.is_repo_owner;
|
||||
this.is_virtual = data.is_virtual;
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user