fixed permissions check on edit posts page - checks for editing privs rather than delete privs (closes #22)