Fix strmmsi_to_mmsi import
[ais.git] / bin / djais / views.py
index 43e532c760a1c4b8b2447d724100d553036e26fd..4c8307c73954336efd92d50f3b35ef21b2dad2cb 100644 (file)
@@ -630,6 +630,8 @@ def vessel_history(request, strmmsi):
         if form.is_valid():
             command, extension = form.get_cmdext()
 
+            if request.user.flag_allowhidden:
+                command += u' --show-hidden-ships'
             command += u' ' + strmmsi
 
             job = Job()
@@ -858,6 +860,8 @@ def fleet_history(request, fleetname):
         if form.is_valid():
             command, extension = form.get_cmdext()
 
+            if request.user.flag_allowhidden:
+                command += u' --show-hidden-ships'
             command += u' @' + fleetname
 
             job = Job()