sftpgo-mirror/internal/dataprovider
Nicola Murino 3dd412f6e3
WebAdmin and REST API: remove too granular permissions
Our permissions system for admin users is too granular and some
permissions overlap. For example, you can define an administrator
with the "manage_system" permission and not with the "manage_admins"
or "manage_user" permission, but the "manage_system" permission
allows you to restore a backup and then create users and
administrators. The following permissions will be removed:
"manage_admins", "manage_apikeys", "manage_system", "retention_checks",
"manage_event_rules", "manage_roles", "manage_ip_lists". Now you
need to add the "*" permission to replace the removed granular
permissions because the removed permissions allow actions that
should only be allowed to super administrators.
There is no point in having separate, overlapping permissions.

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
2024-11-10 10:46:28 +01:00
..
actions.go replace utils.Contains with slices.Contains 2024-07-24 18:27:13 +02:00
admin.go WebAdmin and REST API: remove too granular permissions 2024-11-10 10:46:28 +01:00
apikey.go add an util method to convert []byte to string 2024-05-08 19:01:58 +02:00
bolt.go WebUI: add a token validation mode that allows checking the signature 2024-09-21 14:06:25 +02:00
bolt_disabled.go remove end year from Copyright notice in files 2024-01-01 11:31:45 +01:00
cachedpassword.go remove end year from Copyright notice in files 2024-01-01 11:31:45 +01:00
cacheduser.go remove end year from Copyright notice in files 2024-01-01 11:31:45 +01:00
configs.go update translations 2024-10-13 17:00:17 +02:00
dataprovider.go user: add additional emails 2024-10-11 19:20:51 +02:00
eventrule.go EventManager: allow to define the allowed system commands 2024-11-01 11:37:33 +01:00
group.go remove some useless hooks 2024-09-27 15:52:51 +02:00
iplist.go replace utils.Contains with slices.Contains 2024-07-24 18:27:13 +02:00
memory.go WebUI: add a token validation mode that allows checking the signature 2024-09-21 14:06:25 +02:00
mysql.go WebUI: add a token validation mode that allows checking the signature 2024-09-21 14:06:25 +02:00
mysql_disabled.go remove end year from Copyright notice in files 2024-01-01 11:31:45 +01:00
node.go node: use a plain string as key 2024-10-28 18:34:36 +01:00
pgsql.go WebUI: add a token validation mode that allows checking the signature 2024-09-21 14:06:25 +02:00
pgsql_disabled.go remove end year from Copyright notice in files 2024-01-01 11:31:45 +01:00
quotaupdater.go remove end year from Copyright notice in files 2024-01-01 11:31:45 +01:00
role.go WIP new WebAdmin: role page 2024-01-21 17:19:25 +01:00
scheduler.go remove end year from Copyright notice in files 2024-01-01 11:31:45 +01:00
session.go WebClient: refactor long-running tasks to improve browser compatibility 2024-03-11 18:19:57 +01:00
share.go add an util method to convert []byte to string 2024-05-08 19:01:58 +02:00
sqlcommon.go WebUI: add a token validation mode that allows checking the signature 2024-09-21 14:06:25 +02:00
sqlite.go WebUI: add a token validation mode that allows checking the signature 2024-09-21 14:06:25 +02:00
sqlite_disabled.go add cgo to build constraints 2024-06-16 09:46:17 +02:00
sqlqueries.go WebUI: add a token validation mode that allows checking the signature 2024-09-21 14:06:25 +02:00
unixcrypt.go add cgo to build constraints 2024-06-16 09:46:17 +02:00
unixcrypt_disabled.go add cgo to build constraints 2024-06-16 09:46:17 +02:00
user.go user: add additional emails 2024-10-11 19:20:51 +02:00