Register permissions

No idea why this hasn't been added until now...