Commit e8e37d0c authored by Ad Schellevis's avatar Ad Schellevis

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

parent 0a890241
......@@ -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