Permissions UI

Ah yes, I always forget about race conditions. These can simply be removed as they were only there as an optimization so I don't execute the queries at all, if it wasn't necessary. But yeah, better safe than sorry.