you dont need to use both conditions.
you only need to use the Allow if <?php echo $_SESSION['useractive']; ?> = 1 condition.
if you wanted to use 2 conditions, you would use:
Restrict If <?php echo $_SESSION['SecurityAssist_id']; ?> =
Allow if <?php echo $_SESSION['useractive']; ?> = 1