Fixed Change Password Bug
This commit is contained in:
parent
25035d684d
commit
84c46149f6
1 changed files with 6 additions and 1 deletions
7
home.go
7
home.go
|
@ -26,11 +26,16 @@ func handleHome(w http.ResponseWriter, r *http.Request) {
|
|||
login = checkLogin(w, r)
|
||||
}
|
||||
|
||||
can_admin := false
|
||||
if login != nil {
|
||||
can_admin = login.CanAdmin
|
||||
}
|
||||
|
||||
data := HomePageData{
|
||||
Login: login,
|
||||
BaseDN: config.BaseDN,
|
||||
Org: config.Org,
|
||||
CanAdmin: login.CanAdmin,
|
||||
CanAdmin: can_admin,
|
||||
LoggedIn: true,
|
||||
}
|
||||
templateHome.Execute(w, data)
|
||||
|
|
Loading…
Reference in a new issue