From 0a9d29c98dab1e37f2b5bb09d5dfa34997ff1d17 Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Sat, 25 Jun 2022 09:02:23 +0000 Subject: [PATCH] add dev check to version --- api/tacticalrmm/apiv3/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api/tacticalrmm/apiv3/views.py b/api/tacticalrmm/apiv3/views.py index 596ba654..4b0506ff 100644 --- a/api/tacticalrmm/apiv3/views.py +++ b/api/tacticalrmm/apiv3/views.py @@ -506,7 +506,10 @@ class Installer(APIView): return notify_error("Invalid data") ver = request.data["version"] - if pyver.parse(ver) < pyver.parse(settings.LATEST_AGENT_VER): + if ( + pyver.parse(ver) < pyver.parse(settings.LATEST_AGENT_VER) + and not "-dev" in settings.LATEST_AGENT_VER + ): return notify_error( f"Old installer detected (version {ver} ). Latest version is {settings.LATEST_AGENT_VER} Please generate a new installer from the RMM" )