mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 06:40:54 +03:00
groups: add role placeholder
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -1695,7 +1695,7 @@ func (u *User) LoadAndApplyGroupSettings() error {
|
||||
}
|
||||
|
||||
func (u *User) getGroupPlacehodersReplacer() *strings.Replacer {
|
||||
return strings.NewReplacer("%username%", u.Username)
|
||||
return strings.NewReplacer("%username%", u.Username, "%role%", u.Role)
|
||||
}
|
||||
|
||||
func (u *User) replacePlaceholder(value string, replacer *strings.Replacer) string {
|
||||
|
||||
Reference in New Issue
Block a user