Skip to content
Browse files

Do not allow activation of network access if room is not set

  • Loading branch information...
ibot3 committed Sep 10, 2019
1 parent 84590c6 commit ba572b00f3edcece5577d339c2b9102b09fcd865
Showing with 3 additions and 1 deletion.
  1. +3 −1 sipa/model/pycroft/
@@ -127,7 +127,9 @@ def change_mac_address(self, new_mac, host_name):
def network_access_active(self):
return {'value': (gettext("Aktiviert") if len(self.user_data.interfaces) > 0
else gettext("Nicht aktiviert")),
'tmp_readonly': len(self.user_data.interfaces) > 0 or not self.has_property('network_access')}
'tmp_readonly': len(self.user_data.interfaces) > 0
or not self.has_property('network_access')
or is None}

def network_access_active(self, value):

0 comments on commit ba572b0

Please sign in to comment.
You can’t perform that action at this time.