sftpgo-mirror/common
Nicola Murino b64d3c2fbf
simplify rename permission
before this patch we allow a rename in the following cases:

- the user has rename permission on both source and target path
- the user has delete permission on source path and create/upload on
  target path

we now check only the rename/rename_files/rename_dirs permissions.
This is what SFTPGo users expect.

This is a backward incompatible change and it will not backported to
the 2.2.x branch

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2022-02-26 12:19:09 +01:00
..
actions.go make the sdk a separate module 2022-01-06 11:54:43 +01:00
actions_test.go make the sdk a separate module 2022-01-06 11:54:43 +01:00
clientsmap.go modules: add v2 support 2021-06-26 07:31:41 +02:00
clientsmap_test.go allow to limit the number of per-host connections 2021-05-08 19:45:21 +02:00
common.go OIDC: execute pre-login hook after IDP authentication 2022-02-19 10:53:35 +01:00
common_test.go don't execute fs check if the user has recent activity 2022-02-24 16:11:35 +01:00
connection.go simplify rename permission 2022-02-26 12:19:09 +01:00
connection_test.go simplify rename permission 2022-02-26 12:19:09 +01:00
dataretention.go change log level from warn to error where appropriate 2021-12-16 19:53:00 +01:00
dataretention_test.go make the sdk a separate module 2022-01-06 11:54:43 +01:00
defender.go remove the use of some unnecessary pointers 2022-01-16 12:09:17 +01:00
defender_test.go defender: add provider driver 2021-12-25 12:08:07 +01:00
defenderdb.go remove the use of some unnecessary pointers 2022-01-16 12:09:17 +01:00
defenderdb_test.go defender: add provider driver 2021-12-25 12:08:07 +01:00
defendermem.go remove the use of some unnecessary pointers 2022-01-16 12:09:17 +01:00
httpauth.go add experimental plugin system 2021-07-11 15:26:51 +02:00
httpauth_test.go Use new methods in the io and os packages instead of ioutil ones 2021-02-25 21:53:04 +01:00
protocol_test.go simplify rename permission 2022-02-26 12:19:09 +01:00
ratelimiter.go rate limiting: allow to exclude IP addresses/ranges 2021-10-03 20:50:05 +02:00
ratelimiter_test.go rate limiting: allow to exclude IP addresses/ranges 2021-10-03 20:50:05 +02:00
tlsutils.go add experimental plugin system 2021-07-11 15:26:51 +02:00
tlsutils_test.go Use new methods in the io and os packages instead of ioutil ones 2021-02-25 21:53:04 +01:00
transfer.go update data transfer quota only if the current IP has some limits 2022-01-31 19:30:25 +01:00
transfer_test.go add support for data transfer bandwidth limits 2022-01-30 11:42:36 +01:00
transferschecker.go add support for data transfer bandwidth limits 2022-01-30 11:42:36 +01:00
transferschecker_test.go add support for data transfer bandwidth limits 2022-01-30 11:42:36 +01:00