files.com 1.1.46 → 1.1.47
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/site.md +8 -0
- data/lib/files.com/errors.rb +1 -0
- data/lib/files.com/models/site.rb +12 -0
- data/lib/files.com/version.rb +1 -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: 75cf90cc4284337a47423808d6343d2d384d23bf4fc183ea0197ca8ad7718fb8
|
4
|
+
data.tar.gz: 48b025abfcf8c52a27afd4c9582855005904ec795a4717ecde164cd7bbd6c1b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19848679abed422c9e8d9dfd4110703c691fa9d9d892fa1d573058bc530ef02c3d8f41372e2d5e9ce7278045917f0a2e11f3adfd083576bfad5550a14074d800
|
7
|
+
data.tar.gz: f2904a75e8f3d363386c1e30c28ae91f576050b45ceeb96d778f2b2a81d318a4fd1875773c0c88a9d3bca212dc8c49ec09f99fdc5cd2262cb06348e98ec1ccc7
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.47
|
data/docs/site.md
CHANGED
@@ -260,6 +260,8 @@
|
|
260
260
|
"user_lockout_within": 6,
|
261
261
|
"user_requests_enabled": true,
|
262
262
|
"user_requests_notify_admins": true,
|
263
|
+
"users_can_create_api_keys": true,
|
264
|
+
"users_can_create_ssh_keys": true,
|
263
265
|
"welcome_custom_text": "Welcome to my site!",
|
264
266
|
"welcome_email_cc": "example",
|
265
267
|
"welcome_email_subject": "example",
|
@@ -416,6 +418,8 @@
|
|
416
418
|
* `user_lockout_within` (int64): Number of hours for user lockout window
|
417
419
|
* `user_requests_enabled` (boolean): Enable User Requests feature
|
418
420
|
* `user_requests_notify_admins` (boolean): Send email to site admins when a user request is received?
|
421
|
+
* `users_can_create_api_keys` (boolean): Allow users to create their own API keys?
|
422
|
+
* `users_can_create_ssh_keys` (boolean): Allow users to create their own SSH keys?
|
419
423
|
* `welcome_custom_text` (string): Custom text send in user welcome email
|
420
424
|
* `welcome_email_cc` (email): Include this email in welcome emails if enabled
|
421
425
|
* `welcome_email_subject` (string): Include this email subject in welcome emails if enabled
|
@@ -531,6 +535,8 @@ Files::Site.update(
|
|
531
535
|
dav_enabled: true,
|
532
536
|
ftp_enabled: true,
|
533
537
|
sftp_enabled: true,
|
538
|
+
users_can_create_api_keys: true,
|
539
|
+
users_can_create_ssh_keys: true,
|
534
540
|
sftp_host_key_type: "default",
|
535
541
|
active_sftp_host_key_id: 1,
|
536
542
|
protocol_access_groups_only: true,
|
@@ -674,6 +680,8 @@ Files::Site.update(
|
|
674
680
|
* `dav_enabled` (boolean): Is WebDAV enabled?
|
675
681
|
* `ftp_enabled` (boolean): Is FTP enabled?
|
676
682
|
* `sftp_enabled` (boolean): Is SFTP enabled?
|
683
|
+
* `users_can_create_api_keys` (boolean): Allow users to create their own API keys?
|
684
|
+
* `users_can_create_ssh_keys` (boolean): Allow users to create their own SSH keys?
|
677
685
|
* `sftp_host_key_type` (string): Sftp Host Key Type
|
678
686
|
* `active_sftp_host_key_id` (int64): Id of the currently selected custom SFTP Host Key
|
679
687
|
* `protocol_access_groups_only` (boolean): If true, protocol access permissions on users will be ignored, and only protocol access permissions set on Groups will be honored. Make sure that your current user is a member of a group with API permission when changing this value to avoid locking yourself out of your site.
|
data/lib/files.com/errors.rb
CHANGED
@@ -175,6 +175,7 @@ module Files
|
|
175
175
|
class FileTooBigToDecryptError < ProcessingFailureError; end
|
176
176
|
class FileTooBigToEncryptError < ProcessingFailureError; end
|
177
177
|
class FileUploadedToWrongRegionError < ProcessingFailureError; end
|
178
|
+
class FilenameTooLongError < ProcessingFailureError; end
|
178
179
|
class FolderLockedError < ProcessingFailureError; end
|
179
180
|
class FolderNotEmptyError < ProcessingFailureError; end
|
180
181
|
class HistoryUnavailableError < ProcessingFailureError; end
|
@@ -734,6 +734,16 @@ module Files
|
|
734
734
|
@attributes[:user_requests_notify_admins]
|
735
735
|
end
|
736
736
|
|
737
|
+
# boolean - Allow users to create their own API keys?
|
738
|
+
def users_can_create_api_keys
|
739
|
+
@attributes[:users_can_create_api_keys]
|
740
|
+
end
|
741
|
+
|
742
|
+
# boolean - Allow users to create their own SSH keys?
|
743
|
+
def users_can_create_ssh_keys
|
744
|
+
@attributes[:users_can_create_ssh_keys]
|
745
|
+
end
|
746
|
+
|
737
747
|
# string - Custom text send in user welcome email
|
738
748
|
def welcome_custom_text
|
739
749
|
@attributes[:welcome_custom_text]
|
@@ -867,6 +877,8 @@ module Files
|
|
867
877
|
# dav_enabled - boolean - Is WebDAV enabled?
|
868
878
|
# ftp_enabled - boolean - Is FTP enabled?
|
869
879
|
# sftp_enabled - boolean - Is SFTP enabled?
|
880
|
+
# users_can_create_api_keys - boolean - Allow users to create their own API keys?
|
881
|
+
# users_can_create_ssh_keys - boolean - Allow users to create their own SSH keys?
|
870
882
|
# sftp_host_key_type - string - Sftp Host Key Type
|
871
883
|
# active_sftp_host_key_id - int64 - Id of the currently selected custom SFTP Host Key
|
872
884
|
# protocol_access_groups_only - boolean - If true, protocol access permissions on users will be ignored, and only protocol access permissions set on Groups will be honored. Make sure that your current user is a member of a group with API permission when changing this value to avoid locking yourself out of your site.
|
data/lib/files.com/version.rb
CHANGED