Update core.php

Enabled permissons.