make it possible to hide change password link in profile menu (#29246)
Co-authored-by: Will Browne <wbrowne@users.noreply.github.com>
This commit is contained in:
co-authored by
Will Browne
parent
b75a7f0c96
commit
702cb90846
+6
-2
@@ -30,11 +30,15 @@ func getProfileNode(c *models.ReqContext) *dtos.NavLink {
|
||||
{
|
||||
Text: "Preferences", Id: "profile-settings", Url: setting.AppSubUrl + "/profile", Icon: "sliders-v-alt",
|
||||
},
|
||||
{
|
||||
}
|
||||
|
||||
if setting.AddChangePasswordLink() {
|
||||
children = append(children, &dtos.NavLink{
|
||||
Text: "Change Password", Id: "change-password", Url: setting.AppSubUrl + "/profile/password",
|
||||
Icon: "lock", HideFromMenu: true,
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
if !setting.DisableSignoutMenu {
|
||||
// add sign out first
|
||||
children = append(children, &dtos.NavLink{
|
||||
|
||||
Reference in New Issue
Block a user