mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 23:00:55 +03:00
WebAdmin: add configs section
Setting configurations is an experimental feature and is not currently supported in the REST API Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -274,6 +274,14 @@ func getRemoveSoftDeletedIPListEntryQuery() string {
|
||||
sqlTableIPLists, sqlPlaceholders[0], sqlPlaceholders[1])
|
||||
}
|
||||
|
||||
func getConfigsQuery() string {
|
||||
return fmt.Sprintf(`SELECT configs FROM %s LIMIT 1`, sqlTableConfigs)
|
||||
}
|
||||
|
||||
func getUpdateConfigsQuery() string {
|
||||
return fmt.Sprintf(`UPDATE %s SET configs = %s`, sqlTableConfigs, sqlPlaceholders[0])
|
||||
}
|
||||
|
||||
func getRoleByNameQuery() string {
|
||||
return fmt.Sprintf(`SELECT %s FROM %s WHERE name = %s`, selectRoleFields, sqlTableRoles,
|
||||
sqlPlaceholders[0])
|
||||
|
||||
Reference in New Issue
Block a user