Move permissions to enum.