fix edit permissions