Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

Fixes edit viewable by ever1

Cette révision appartient à :
akuma06 2017-05-11 02:18:19 +02:00
Parent 7bc395068d
révision c1add13aa2

Voir le fichier

@ -108,7 +108,7 @@ func UserDetailsHandler(w http.ResponseWriter, r *http.Request) {
id := vars["id"]
b := form.UserForm{}
userProfile, _, errorUser := userService.RetrieveUserForAdmin(id)
if errorUser == nil {
if errorUser == nil && userPermission.CurrentOrAdmin(currentUser, userProfile.ID) {
currentUser := GetUser(r)
modelHelper.BindValueForm(&b, r)
languages.SetTranslationFromRequest(viewProfileEditTemplate, r, "en-us")