Fix a dumb error where get_permissions returned nothing.

What it says :/