Example #1
0
 /**
  * Set the Process module (WirePageEditor) that is editing this User
  * 
  * We use this to detect when the User is being edited somewhere outside of /access/users/
  * 
  * @param WirePageEditor $editor
  * 
  */
 public function ___setEditor(WirePageEditor $editor)
 {
     parent::___setEditor($editor);
     if (!$editor instanceof ProcessUser) {
         $this->wire('session')->redirect($this->editUrl());
     }
 }