Commit 462b2295 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(captiveportal, new) don't let the user disconnect static entries

(cherry picked from commit e8e37d0c)
parent cbb4024a
......@@ -201,7 +201,10 @@ class AccessController extends ApiControllerBase
} else {
$this->sessionClose();
$clientSession = $this->clientSession((string)$zoneid);
if ($clientSession['clientState'] == 'AUTHORIZED') {
if ($clientSession['clientState'] == 'AUTHORIZED' &&
$clientSession['authenticated_via'] != '---ip---' &&
$clientSession['authenticated_via'] != '---mac---'
) {
// you can only disconnect a connected client
$backend = new Backend();
$statusRAW = $backend->configdpRun(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment