files.com 1.0.348 → 1.0.350

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b28516dcde77d14d7085866cda21aa42835e1d569a6d2aad325bf94f210e6d1a
4
- data.tar.gz: 15b66d280f366e18c44e30b13d435792dc724122d3e55090307faa7462a54b11
3
+ metadata.gz: '0949c7e3012cad3d4d149b9fd9dcf0c8fc858a68cd9b93ea37f56e82ab8da137'
4
+ data.tar.gz: 4e488ea540349d07f6d399f36b0f332218c6476a3d735e46cb477a7b72ba5be9
5
5
  SHA512:
6
- metadata.gz: 0327cd8bcd7b3a0973d6b447cabb507f104738df43c627873a8ac528ecd95629baba0e77e03549179213f640a1887a48f7c4009fd25fb4f0588c700a5cac8d75
7
- data.tar.gz: 44ede035c52b9a88397f9c4a5bab5bfa5cef9765a2e7dd0e4c1ec81ea256e059cd0ee48e80c862f0fea7bbf2dcf73d0e7e5d5a90e151a1050f7d2fb186e52e61
6
+ metadata.gz: c4dc5fbfbfc3afd273670e0b06792e25ab9649db7ccd2b09451ef38be69c8742ede89ed06139a52aa40435ba097efa749b42c82f58b6b4ba3b0725025c558b28
7
+ data.tar.gz: 733383d7dac4258da405a3648f161605234769835978cd8aed190c4d55935a7be02ed67f5999a708a95bc91ade1c51ce8b1f1b09d0c4c5cf9221a9488f6174ac
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.348
1
+ 1.0.350
data/docs/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)?
@@ -450,6 +452,7 @@ Files::Site.update(
450
452
  bundle_activity_notifications: "never",
451
453
  bundle_upload_receipt_notifications: "never",
452
454
  password_requirements_apply_to_bundles: true,
455
+ prevent_root_permissions_for_non_site_admins: true,
453
456
  opt_out_global: true,
454
457
  use_provided_modified_at: true,
455
458
  custom_namespace: true,
@@ -580,6 +583,7 @@ Files::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?
@@ -132,6 +132,7 @@ module Files
132
132
  class SiteFilesAreImmutableError < NotAuthorizedError; end
133
133
  class TwoFactorAuthenticationRequiredError < NotAuthorizedError; end
134
134
  class UserIdWithoutSiteAdminError < NotAuthorizedError; end
135
+ class WriteAndBundlePermissionRequiredError < NotAuthorizedError; end
135
136
  class WritePermissionRequiredError < NotAuthorizedError; end
136
137
  class ZipDownloadIpMismatchError < NotAuthorizedError; end
137
138
 
@@ -499,6 +499,11 @@ module Files
499
499
  @attributes[:pin_all_remote_servers_to_site_region]
500
500
  end
501
501
 
502
+ # 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.
503
+ def prevent_root_permissions_for_non_site_admins
504
+ @attributes[:prevent_root_permissions_for_non_site_admins]
505
+ end
506
+
502
507
  # boolean - Require two-factor authentication for all users?
503
508
  def require_2fa
504
509
  @attributes[:require_2fa]
@@ -794,6 +799,7 @@ module Files
794
799
  # bundle_activity_notifications - string - Do Bundle owners receive activity notifications?
795
800
  # bundle_upload_receipt_notifications - string - Do Bundle uploaders receive upload confirmation notifications?
796
801
  # 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?
802
+ # 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.
797
803
  # opt_out_global - boolean - Use servers in the USA only?
798
804
  # use_provided_modified_at - boolean - Allow uploaders to set `provided_modified_at` for uploaded files?
799
805
  # custom_namespace - boolean - Is this site using a custom namespace for users?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: files.com
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.348
4
+ version: 1.0.350
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-18 00:00:00.000000000 Z
11
+ date: 2023-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable