Dont apply restrictions

Changes related to frappe/frappe#543