Fixed a few regressions and renamed a file.
This commit is contained in:
parent
11c60b3cbe
commit
96b157e5aa
|
@ -662,7 +662,7 @@ func routeIps(w http.ResponseWriter, r *http.Request, user User) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
err = templates.ExecuteTemplate(w, "ip-search-results.html", pi)
|
err = templates.ExecuteTemplate(w, "ip-search.html", pi)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
InternalError(err, w)
|
InternalError(err, w)
|
||||||
}
|
}
|
||||||
|
|
|
@ -347,9 +347,9 @@ func rebuildForumPermissions(fid int) error {
|
||||||
if dev.DebugMode {
|
if dev.DebugMode {
|
||||||
log.Print("Updating the forum permissions for Group #" + strconv.Itoa(group.ID))
|
log.Print("Updating the forum permissions for Group #" + strconv.Itoa(group.ID))
|
||||||
}
|
}
|
||||||
var blankList []ForumPerms
|
|
||||||
var blankIntList []int
|
var blankIntList []int
|
||||||
group.Forums = blankList
|
group.Forums = []ForumPerms{BlankForumPerms}
|
||||||
group.CanSee = blankIntList
|
group.CanSee = blankIntList
|
||||||
|
|
||||||
for ffid := range forums {
|
for ffid := range forums {
|
||||||
|
@ -428,7 +428,7 @@ func buildForumPermissions() error {
|
||||||
if dev.DebugMode {
|
if dev.DebugMode {
|
||||||
log.Print("Adding the forum permissions for Group #" + strconv.Itoa(group.ID) + " - " + group.Name)
|
log.Print("Adding the forum permissions for Group #" + strconv.Itoa(group.ID) + " - " + group.Name)
|
||||||
}
|
}
|
||||||
//groups[gid].Forums = append(groups[gid].Forums,BlankForumPerms) // GID 0. No longer needed now that Uncategorised occupies that slot
|
group.Forums = []ForumPerms{BlankForumPerms}
|
||||||
for fid := range forums {
|
for fid := range forums {
|
||||||
forumPerm, ok := forumPerms[group.ID][fid]
|
forumPerm, ok := forumPerms[group.ID][fid]
|
||||||
if ok {
|
if ok {
|
||||||
|
@ -451,10 +451,10 @@ func buildForumPermissions() error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if dev.SuperDebug {
|
if dev.SuperDebug {
|
||||||
//log.Printf("groups[gid].CanSee %+v\n", groups[gid].CanSee)
|
//log.Printf("group.CanSee %+v\n", group.CanSee)
|
||||||
//log.Printf("groups[gid].Forums %+v\n", groups[gid].Forums)
|
//log.Printf("group.Forums %+v\n", group.Forums)
|
||||||
//log.Print("len(groups[gid].CanSee)",len(groups[gid].CanSee))
|
//log.Print("len(group.CanSee)",len(group.CanSee))
|
||||||
//log.Print("len(groups[gid].Forums)",len(groups[gid].Forums))
|
//log.Print("len(group.Forums)",len(group.Forums))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|
|
@ -491,7 +491,7 @@ input, select, textarea {
|
||||||
float: left;
|
float: left;
|
||||||
padding-right: 0px;
|
padding-right: 0px;
|
||||||
}
|
}
|
||||||
.rowhead .rowitem:not(.has_opt) {
|
.rowhead .rowitem:not(.has_opt), .opthead .rowitem, .colstack_head .rowitem {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue