diff --git a/data/data.go b/data/data.go index 00d391d..d0d3deb 100644 --- a/data/data.go +++ b/data/data.go @@ -33,7 +33,7 @@ var ( // IsPrimary i.e. Is Primary Node IsPrimary bool // Version of JANUSEC - Version = "1.2.8" + Version = "1.2.9" // NodeKey share with all nodes NodeKey []byte ) diff --git a/firewall/group_policy.go b/firewall/group_policy.go index f4e8253..f3e1816 100644 --- a/firewall/group_policy.go +++ b/firewall/group_policy.go @@ -231,7 +231,7 @@ func InitGroupPolicy() { } // GetGroupPolicies ... -func GetGroupPolicies(appID int64) ([]*models.GroupPolicy, error) { +func GetGroupPolicies() ([]*models.GroupPolicy, error) { return groupPolicies, nil } diff --git a/gateway/api.go b/gateway/api.go index eac00b0..16ba46a 100644 --- a/gateway/api.go +++ b/gateway/api.go @@ -136,8 +136,7 @@ func AdminAPIHandlerFunc(w http.ResponseWriter, r *http.Request) { obj = nil err = firewall.UpdateCCPolicy(param, clientIP, authUser) case "get_group_policies": - appID := int64(param["id"].(float64)) - obj, err = firewall.GetGroupPolicies(appID) + obj, err = firewall.GetGroupPolicies() case "get_group_policy": id := int64(param["id"].(float64)) obj, err = firewall.GetGroupPolicyByID(id) @@ -296,8 +295,7 @@ func ReplicaAPIHandlerFunc(w http.ResponseWriter, r *http.Request) { case "get_cc_policies": obj, err = firewall.GetCCPolicies() case "get_group_policies": - appID := int64(param["id"].(float64)) - obj, err = firewall.GetGroupPolicies(appID) + obj, err = firewall.GetGroupPolicies() case "get_ip_policies": obj, err = firewall.GetIPPolicies() case "get_vuln_types": diff --git a/release_batch.sh b/release_batch.sh index 6612a45..f073bd5 100755 --- a/release_batch.sh +++ b/release_batch.sh @@ -2,7 +2,7 @@ printf "Creating installation package\n" printf "Checklist:\n" printf "* Angular Admin Version Check. \n" printf "* Janusec Version Check. \n" -version="1.2.8" +version="1.2.9" printf "Version: ${version} \n" read -r -p "Are You Sure? [Y/n] " option