Code Duplication    Length = 3-3 lines in 2 locations

src/Intraface/User.php 2 locations

@@ 366-368 (lines=3) @@
363
        }
364
365
        // then we check whether there is access to the sub access
366
        if (!empty($this->permissions['user']['module']['subaccess'][$sub_access_id]) and $this->permissions['user']['module']['subaccess'][$sub_access_id] === true) {
367
            return true;
368
        }
369
370
        // if the check on the array did not go possitive, we make sure it is because they are not loaded.
371
        // @todo: this is probably not a good way to do it.
@@ 391-393 (lines=3) @@
388
            $this->permissions['user']['module']['subaccess'][$row['id']] = true;
389
        }
390
391
        if (!empty($this->permissions['user']['module']['subaccess'][$sub_access_id]) and $this->permissions['user']['module']['subaccess'][$sub_access_id] === true) {
392
            return true;
393
        }
394
395
        return false;
396
    }