added restriction to edit formulas by permission