Fixed bug with permissions. Should now work, for both editing and creating