You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fixed
Rule export always returns a JSON array. Single-rule exports previously
emitted a bare object {…} instead of a one-element array [{…}], making
the exported JSON incompatible with the import box (which expects the array
form [{"dest":[…],"listen_port":…,"name":"…"}]). Export now always wraps
the result in an array, so copy-paste round-trips work regardless of the
number of rules selected.
Imported rules were attributed to the admin instead of the target user.
When an admin opened a user's rule list via /rules?owner_uid=X and used
the bulk-import feature, the created rules were owned by the admin account.
The owner_uid parameter is now forwarded in the import POST request,
matching the behaviour of the manual "add rule" form.