first permission.php

first version for permission.php