Update permissions.php

Integrity checks