files.com 1.1.1 → 1.1.3
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 +4 -4
- data/_VERSION +1 -1
- data/bin/files +2 -2
- data/bin/files-console +1 -1
- data/docs/site.md +4 -0
- data/lib/files.com/models/site.rb +6 -0
- data/lib/files.com/version.rb +1 -1
- data/setup.sh +4 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7e9f5238627784c9e8f5a5205cc69968a7cea8cc8960dbf161c554eeda2ce33
|
4
|
+
data.tar.gz: d8f97881249ec3a71b713baa752d877b3a364f3f36b7ad5dfa04306dd198efc0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e270b0f252e971f03ea2b49d0b2afb8b25949bdc1370fa6619af9d32157cd6bda9299813f871c83a06a5df6481bc24086364400ae4f45bafca87000c2d0580c6
|
7
|
+
data.tar.gz: 709e26324054a511c47367634b3d0569aa191463cadaf852c16f7a0d6e27bb38c81f2df56f9956b86daf5a771700b571d832d74e73c09f727fc86099c37b50b9
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.3
|
data/bin/files
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
# frozen_string_literal: true
|
4
4
|
|
5
|
-
require "#{
|
6
|
-
require "#{
|
5
|
+
require "#{File.dirname(__FILE__)}/../lib/files.com"
|
6
|
+
require "#{File.dirname(__FILE__)}/../lib/files.com/cli"
|
7
7
|
|
8
8
|
Files::Cli.new.run
|
data/bin/files-console
CHANGED
data/docs/site.md
CHANGED
@@ -12,6 +12,7 @@
|
|
12
12
|
"allowed_2fa_method_yubi": true,
|
13
13
|
"allowed_2fa_method_bypass_for_ftp_sftp_dav": true,
|
14
14
|
"admin_user_id": 1,
|
15
|
+
"admins_bypass_locked_subfolders": true,
|
15
16
|
"allow_bundle_names": true,
|
16
17
|
"allowed_countries": "US,DE",
|
17
18
|
"allowed_ips": "example",
|
@@ -236,6 +237,7 @@
|
|
236
237
|
* `allowed_2fa_method_yubi` (boolean): Is yubikey two factor authentication allowed?
|
237
238
|
* `allowed_2fa_method_bypass_for_ftp_sftp_dav` (boolean): Are users allowed to configure their two factor authentication to be bypassed for FTP/SFTP/WebDAV?
|
238
239
|
* `admin_user_id` (int64): User ID for the main site administrator
|
240
|
+
* `admins_bypass_locked_subfolders` (boolean): Allow admins to bypass the locked subfolders setting.
|
239
241
|
* `allow_bundle_names` (boolean): Are manual Bundle names allowed?
|
240
242
|
* `allowed_countries` (string): Comma seperated list of allowed Country codes
|
241
243
|
* `allowed_ips` (string): List of allowed IP addresses
|
@@ -488,6 +490,7 @@ Files::Site.update(
|
|
488
490
|
group_admins_can_set_user_password: true,
|
489
491
|
bundle_recipient_blacklist_free_email_domains: true,
|
490
492
|
bundle_recipient_blacklist_domains: ["example"],
|
493
|
+
admins_bypass_locked_subfolders: true,
|
491
494
|
allowed_2fa_method_sms: true,
|
492
495
|
allowed_2fa_method_u2f: true,
|
493
496
|
allowed_2fa_method_totp: true,
|
@@ -625,6 +628,7 @@ Files::Site.update(
|
|
625
628
|
* `group_admins_can_set_user_password` (boolean): Allow group admins set password authentication method
|
626
629
|
* `bundle_recipient_blacklist_free_email_domains` (boolean): Disallow free email domains for Bundle/Inbox recipients?
|
627
630
|
* `bundle_recipient_blacklist_domains` (array(string)): List of email domains to disallow when entering a Bundle/Inbox recipients
|
631
|
+
* `admins_bypass_locked_subfolders` (boolean): Allow admins to bypass the locked subfolders setting.
|
628
632
|
* `allowed_2fa_method_sms` (boolean): Is SMS two factor authentication allowed?
|
629
633
|
* `allowed_2fa_method_u2f` (boolean): Is U2F two factor authentication allowed?
|
630
634
|
* `allowed_2fa_method_totp` (boolean): Is TOTP two factor authentication allowed?
|
@@ -49,6 +49,11 @@ module Files
|
|
49
49
|
@attributes[:admin_user_id]
|
50
50
|
end
|
51
51
|
|
52
|
+
# boolean - Allow admins to bypass the locked subfolders setting.
|
53
|
+
def admins_bypass_locked_subfolders
|
54
|
+
@attributes[:admins_bypass_locked_subfolders]
|
55
|
+
end
|
56
|
+
|
52
57
|
# boolean - Are manual Bundle names allowed?
|
53
58
|
def allow_bundle_names
|
54
59
|
@attributes[:allow_bundle_names]
|
@@ -850,6 +855,7 @@ module Files
|
|
850
855
|
# group_admins_can_set_user_password - boolean - Allow group admins set password authentication method
|
851
856
|
# bundle_recipient_blacklist_free_email_domains - boolean - Disallow free email domains for Bundle/Inbox recipients?
|
852
857
|
# bundle_recipient_blacklist_domains - array(string) - List of email domains to disallow when entering a Bundle/Inbox recipients
|
858
|
+
# admins_bypass_locked_subfolders - boolean - Allow admins to bypass the locked subfolders setting.
|
853
859
|
# allowed_2fa_method_sms - boolean - Is SMS two factor authentication allowed?
|
854
860
|
# allowed_2fa_method_u2f - boolean - Is U2F two factor authentication allowed?
|
855
861
|
# allowed_2fa_method_totp - boolean - Is TOTP two factor authentication allowed?
|
data/lib/files.com/version.rb
CHANGED
data/setup.sh
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
#!/usr/bin/env bash
|
2
2
|
|
3
|
+
# cd to the directory containing this file
|
4
|
+
cd "$( dirname "${BASH_SOURCE[0]}" )"
|
5
|
+
|
3
6
|
# Auto-fix generated code, an important fix is where we use `inspect` to generate hashes
|
4
7
|
# and these hashes do not have spaces around {} or =>
|
5
8
|
# Note: we always return true so that offenses that cannot be auto-fixed are ignored for local developement, CI will catch them
|
6
|
-
bundle exec rubocop --format simple -a --ignore-parent-exclusion >/dev/null 2>/dev/null || true
|
9
|
+
bundle install >/dev/null 2>/dev/null && bundle exec rubocop --cache false --format simple -a --ignore-parent-exclusion >/dev/null 2>/dev/null || true
|