added editor role handling
fixed permissions