mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
Keep the old configuration rules behaviour
This commit is contained in:
@@ -56,7 +56,8 @@ func (h *HeartbeatHandler) ApiPost(w http.ResponseWriter, r *http.Request) {
|
||||
hb.Machine = machineName
|
||||
hb.User = user
|
||||
hb.UserID = user.ID
|
||||
hb.Augment(rules)
|
||||
hb.AugmentWithConfigRules(h.config.App.CustomLanguages)
|
||||
hb.AugmentWithUserRules(rules)
|
||||
|
||||
if !hb.Valid() {
|
||||
w.WriteHeader(http.StatusBadRequest)
|
||||
|
||||
Reference in New Issue
Block a user