Fixed function checkpermissions