permissions fix
make that an array, something with static stops it overwriting the number
return 1 if the value isn't set on the permissions check