files.com 1.0.349 → 1.0.351

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4b635e2758a31eeb4c06d2164596ffd24f63fd1c5749527747f4e44b1848e68b
4
- data.tar.gz: c0b26970af9bd96eb1b4905fb6093c05d43b01996ecac7506976465d1babf065
3
+ metadata.gz: d113b270a9915852eaef441b1e5b23877e38646093a991df4f6b79509c03ce6e
4
+ data.tar.gz: 3aada33beed62b371ff925fbc548f905c94bc38f1340fbab7311b8b770a41ced
5
5
  SHA512:
6
- metadata.gz: e9601af5e69f3d3a5dc7259494c04d6251d401b012a7c97aebb0443c665b5a86cf538f51cc004d754e98e40e305c106daf803ff800b44e1a1f5d283cd4a8d20f
7
- data.tar.gz: 5ffbf7e6ef430973b22a4abd6895f697c10a088271bcb100276903886ed945b920a528d9bec319270b455c94492a8b93da73d167f3bc9c70fd726b7534f294ac
6
+ metadata.gz: 11e555a77799cefe22b22627870f394e8b97318ebb40bbacef840a721333a1d29b4e4ac5d6d43eb3a9b7149bf2428ba57553b7649a99d9a0e838d6530ae28505
7
+ data.tar.gz: 1d80c27ca0e79b961b57ae12ba9926688c782286fca65e80a8a1f20596df58d73ad1f073ba8f3ecb73340d954e8bdce6eeb8595b8a2f7c1d1d4ecb8743fd0900
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.349
1
+ 1.0.351
data/docs/site.md CHANGED
@@ -108,6 +108,7 @@
108
108
  "require_2fa": true,
109
109
  "require_2fa_stop_time": "2000-01-01T01:00:00Z",
110
110
  "require_2fa_user_type": "`site_admins`",
111
+ "require_logout_from_bundles_and_inboxes": true,
111
112
  "session": {
112
113
  "id": "60525f92e859c4c3d74cb02fd176b1525901b525",
113
114
  "language": "en",
@@ -321,6 +322,7 @@
321
322
  * `require_2fa` (boolean): Require two-factor authentication for all users?
322
323
  * `require_2fa_stop_time` (date-time): If set, requirement for two-factor authentication has been scheduled to end on this date-time.
323
324
  * `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)?
325
+ * `require_logout_from_bundles_and_inboxes` (boolean): If true, we will hide the 'Remember Me' box on Inbox and Bundle registration pages, requiring that the user logout and log back in every time they visit the page.
324
326
  * `session` (Session): Current session
325
327
  * `session_pinned_by_ip` (boolean): Are sessions locked to the same IP? (i.e. do users need to log in again if they change IPs?)
326
328
  * `sftp_enabled` (boolean): Is SFTP enabled?
@@ -442,6 +444,7 @@ Files::Site.update(
442
444
  password_require_special: true,
443
445
  password_require_number: true,
444
446
  password_require_unbreached: true,
447
+ require_logout_from_bundles_and_inboxes: true,
445
448
  sftp_user_root_enabled: true,
446
449
  disable_password_reset: true,
447
450
  immutable_files: true,
@@ -573,6 +576,7 @@ Files::Site.update(
573
576
  * `password_require_special` (boolean): Require special characters in password?
574
577
  * `password_require_number` (boolean): Require a number in passwords?
575
578
  * `password_require_unbreached` (boolean): Require passwords that have not been previously breached? (see https://haveibeenpwned.com/)
579
+ * `require_logout_from_bundles_and_inboxes` (boolean): If true, we will hide the 'Remember Me' box on Inbox and Bundle registration pages, requiring that the user logout and log back in every time they visit the page.
576
580
  * `sftp_user_root_enabled` (boolean): Use user FTP roots also for SFTP?
577
581
  * `disable_password_reset` (boolean): Is password reset disabled?
578
582
  * `immutable_files` (boolean): Are files protected from modification?
@@ -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
 
@@ -519,6 +519,11 @@ module Files
519
519
  @attributes[:require_2fa_user_type]
520
520
  end
521
521
 
522
+ # boolean - If true, we will hide the 'Remember Me' box on Inbox and Bundle registration pages, requiring that the user logout and log back in every time they visit the page.
523
+ def require_logout_from_bundles_and_inboxes
524
+ @attributes[:require_logout_from_bundles_and_inboxes]
525
+ end
526
+
522
527
  # Session - Current session
523
528
  def session
524
529
  @attributes[:session]
@@ -789,6 +794,7 @@ module Files
789
794
  # password_require_special - boolean - Require special characters in password?
790
795
  # password_require_number - boolean - Require a number in passwords?
791
796
  # password_require_unbreached - boolean - Require passwords that have not been previously breached? (see https://haveibeenpwned.com/)
797
+ # require_logout_from_bundles_and_inboxes - boolean - If true, we will hide the 'Remember Me' box on Inbox and Bundle registration pages, requiring that the user logout and log back in every time they visit the page.
792
798
  # sftp_user_root_enabled - boolean - Use user FTP roots also for SFTP?
793
799
  # disable_password_reset - boolean - Is password reset disabled?
794
800
  # immutable_files - boolean - Are files protected from modification?
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.349
4
+ version: 1.0.351
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-22 00:00:00.000000000 Z
11
+ date: 2023-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable