files.com 1.0.273 → 1.0.274
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/docs/models/Site.md +4 -0
- package/lib/models/Site.js +5 -0
- package/package.json +1 -1
- package/src/models/Site.js +4 -0
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.274
|
package/docs/models/Site.md
CHANGED
@@ -104,6 +104,7 @@
|
|
104
104
|
"password_validity_days": 1,
|
105
105
|
"phone": "555-555-5555",
|
106
106
|
"pin_all_remote_servers_to_site_region": true,
|
107
|
+
"prevent_root_permissions_for_non_site_admins": true,
|
107
108
|
"require_2fa": true,
|
108
109
|
"require_2fa_stop_time": "2000-01-01T01:00:00Z",
|
109
110
|
"require_2fa_user_type": "`site_admins`",
|
@@ -316,6 +317,7 @@
|
|
316
317
|
* `password_validity_days` (int64): Number of days password is valid
|
317
318
|
* `phone` (string): Site phone number
|
318
319
|
* `pin_all_remote_servers_to_site_region` (boolean): If true, we will ensure that all internal communications with any remote server are made through the primary region of the site. This setting overrides individual remote server settings.
|
320
|
+
* `prevent_root_permissions_for_non_site_admins` (boolean): If true, we will prevent non-administrators from receiving any permissions directly on the root folder. This is commonly used to prevent the accidental application of permissions.
|
319
321
|
* `require_2fa` (boolean): Require two-factor authentication for all users?
|
320
322
|
* `require_2fa_stop_time` (date-time): If set, requirement for two-factor authentication has been scheduled to end on this date-time.
|
321
323
|
* `require_2fa_user_type` (string): What type of user is required to use two-factor authentication (when require_2fa is set to `true` for this site)?
|
@@ -449,6 +451,7 @@ await Site.update({
|
|
449
451
|
'bundle_activity_notifications': "never",
|
450
452
|
'bundle_upload_receipt_notifications': "never",
|
451
453
|
'password_requirements_apply_to_bundles': true,
|
454
|
+
'prevent_root_permissions_for_non_site_admins': true,
|
452
455
|
'opt_out_global': true,
|
453
456
|
'use_provided_modified_at': true,
|
454
457
|
'custom_namespace': true,
|
@@ -580,6 +583,7 @@ await Site.update({
|
|
580
583
|
* `bundle_activity_notifications` (string): Do Bundle owners receive activity notifications?
|
581
584
|
* `bundle_upload_receipt_notifications` (string): Do Bundle uploaders receive upload confirmation notifications?
|
582
585
|
* `password_requirements_apply_to_bundles` (boolean): Require bundles' passwords, and passwords for other items (inboxes, public shares, etc.) to conform to the same requirements as users' passwords?
|
586
|
+
* `prevent_root_permissions_for_non_site_admins` (boolean): If true, we will prevent non-administrators from receiving any permissions directly on the root folder. This is commonly used to prevent the accidental application of permissions.
|
583
587
|
* `opt_out_global` (boolean): Use servers in the USA only?
|
584
588
|
* `use_provided_modified_at` (boolean): Allow uploaders to set `provided_modified_at` for uploaded files?
|
585
589
|
* `custom_namespace` (boolean): Is this site using a custom namespace for users?
|
package/lib/models/Site.js
CHANGED
@@ -423,6 +423,10 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
|
|
423
423
|
(0, _defineProperty2.default)(this, "getPinAllRemoteServersToSiteRegion", function () {
|
424
424
|
return _this.attributes.pin_all_remote_servers_to_site_region;
|
425
425
|
});
|
426
|
+
// boolean # If true, we will prevent non-administrators from receiving any permissions directly on the root folder. This is commonly used to prevent the accidental application of permissions.
|
427
|
+
(0, _defineProperty2.default)(this, "getPreventRootPermissionsForNonSiteAdmins", function () {
|
428
|
+
return _this.attributes.prevent_root_permissions_for_non_site_admins;
|
429
|
+
});
|
426
430
|
// boolean # Require two-factor authentication for all users?
|
427
431
|
(0, _defineProperty2.default)(this, "getRequire2fa", function () {
|
428
432
|
return _this.attributes.require_2fa;
|
@@ -715,6 +719,7 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
|
|
715
719
|
// bundle_activity_notifications - string - Do Bundle owners receive activity notifications?
|
716
720
|
// bundle_upload_receipt_notifications - string - Do Bundle uploaders receive upload confirmation notifications?
|
717
721
|
// password_requirements_apply_to_bundles - boolean - Require bundles' passwords, and passwords for other items (inboxes, public shares, etc.) to conform to the same requirements as users' passwords?
|
722
|
+
// prevent_root_permissions_for_non_site_admins - boolean - If true, we will prevent non-administrators from receiving any permissions directly on the root folder. This is commonly used to prevent the accidental application of permissions.
|
718
723
|
// opt_out_global - boolean - Use servers in the USA only?
|
719
724
|
// use_provided_modified_at - boolean - Allow uploaders to set `provided_modified_at` for uploaded files?
|
720
725
|
// custom_namespace - boolean - Is this site using a custom namespace for users?
|
package/package.json
CHANGED
package/src/models/Site.js
CHANGED
@@ -317,6 +317,9 @@ class Site {
|
|
317
317
|
// boolean # If true, we will ensure that all internal communications with any remote server are made through the primary region of the site. This setting overrides individual remote server settings.
|
318
318
|
getPinAllRemoteServersToSiteRegion = () => this.attributes.pin_all_remote_servers_to_site_region
|
319
319
|
|
320
|
+
// boolean # If true, we will prevent non-administrators from receiving any permissions directly on the root folder. This is commonly used to prevent the accidental application of permissions.
|
321
|
+
getPreventRootPermissionsForNonSiteAdmins = () => this.attributes.prevent_root_permissions_for_non_site_admins
|
322
|
+
|
320
323
|
// boolean # Require two-factor authentication for all users?
|
321
324
|
getRequire2fa = () => this.attributes.require_2fa
|
322
325
|
|
@@ -527,6 +530,7 @@ class Site {
|
|
527
530
|
// bundle_activity_notifications - string - Do Bundle owners receive activity notifications?
|
528
531
|
// bundle_upload_receipt_notifications - string - Do Bundle uploaders receive upload confirmation notifications?
|
529
532
|
// password_requirements_apply_to_bundles - boolean - Require bundles' passwords, and passwords for other items (inboxes, public shares, etc.) to conform to the same requirements as users' passwords?
|
533
|
+
// prevent_root_permissions_for_non_site_admins - boolean - If true, we will prevent non-administrators from receiving any permissions directly on the root folder. This is commonly used to prevent the accidental application of permissions.
|
530
534
|
// opt_out_global - boolean - Use servers in the USA only?
|
531
535
|
// use_provided_modified_at - boolean - Allow uploaders to set `provided_modified_at` for uploaded files?
|
532
536
|
// custom_namespace - boolean - Is this site using a custom namespace for users?
|